Struct codemap::Spanned
[−]
[src]
pub struct Spanned<T> { pub node: T, pub span: Span, }
Associate a Span with a value of arbitrary type (e.g. an AST node).
Fields
node: T
span: Span
Trait Implementations
impl<T: Clone> Clone for Spanned<T>
[src]
fn clone(&self) -> Spanned<T>
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0
Performs copy-assignment from source
. Read more
impl<T: PartialEq> PartialEq for Spanned<T>
[src]
fn eq(&self, __arg_0: &Spanned<T>) -> bool
This method tests for self
and other
values to be equal, and is used by ==
. Read more
fn ne(&self, __arg_0: &Spanned<T>) -> bool
This method tests for !=
.
impl<T: Eq> Eq for Spanned<T>
[src]
impl<T: Hash> Hash for Spanned<T>
[src]
fn hash<__HT: Hasher>(&self, __arg_0: &mut __HT)
Feeds this value into the given [Hasher
]. Read more
fn hash_slice<H>(data: &[Self], state: &mut H) where
H: Hasher,
1.3.0
H: Hasher,
Feeds a slice of this type into the given [Hasher
]. Read more