pub struct StatementUnit {
pub text: String,
pub span: StatementSpan,
pub hash: u64,
}Expand description
One statement unit discovered in a source file.
Fields§
§text: StringStatement text.
span: StatementSpanStatement source span.
hash: u64Stable hash of the statement text.
Trait Implementations§
Source§impl Clone for StatementUnit
impl Clone for StatementUnit
Source§fn clone(&self) -> StatementUnit
fn clone(&self) -> StatementUnit
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for StatementUnit
impl Debug for StatementUnit
Source§impl PartialEq for StatementUnit
impl PartialEq for StatementUnit
impl Eq for StatementUnit
impl StructuralPartialEq for StatementUnit
Auto Trait Implementations§
impl Freeze for StatementUnit
impl RefUnwindSafe for StatementUnit
impl Send for StatementUnit
impl Sync for StatementUnit
impl Unpin for StatementUnit
impl UnsafeUnpin for StatementUnit
impl UnwindSafe for StatementUnit
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Checks if this value is equivalent to the given key. Read more