Struct syntax::codemap::Spanned
[−]
[src]
pub struct Spanned<T> {
pub node: T,
pub span: Span,
}🔬 This is a nightly-only experimental API. (rustc_private)
this crate is being loaded from the sysroot, an unstable location; did you mean to load this crate from crates.io via Cargo.toml instead?
Fields
node: T
🔬 This is a nightly-only experimental API. (rustc_private)
this crate is being loaded from the sysroot, an unstable location; did you mean to load this crate from crates.io via Cargo.toml instead?
span: Span
🔬 This is a nightly-only experimental API. (rustc_private)
this crate is being loaded from the sysroot, an unstable location; did you mean to load this crate from crates.io via Cargo.toml instead?
Trait Implementations
impl<T: HasAttrs> HasAttrs for Spanned<T>[src]
impl<T: HasAttrs> HasAttrs for Spanned<T>fn attrs(&self) -> &[Attribute][src]
fn attrs(&self) -> &[Attribute]🔬 This is a nightly-only experimental API. (rustc_private)
this crate is being loaded from the sysroot, an unstable location; did you mean to load this crate from crates.io via Cargo.toml instead?
fn map_attrs<F: FnOnce(Vec<Attribute>) -> Vec<Attribute>>(self, f: F) -> Self[src]
fn map_attrs<F: FnOnce(Vec<Attribute>) -> Vec<Attribute>>(self, f: F) -> Self🔬 This is a nightly-only experimental API. (rustc_private)
this crate is being loaded from the sysroot, an unstable location; did you mean to load this crate from crates.io via Cargo.toml instead?
impl<T: Clone> Clone for Spanned<T>[src]
impl<T: Clone> Clone for Spanned<T>fn clone(&self) -> 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[src]
fn clone_from(&mut self, source: &Self)Performs copy-assignment from source. Read more
impl<T: PartialEq> PartialEq for Spanned<T>[src]
impl<T: PartialEq> PartialEq for Spanned<T>fn eq(&self, __arg_0: &Spanned<T>) -> bool[src]
fn eq(&self, __arg_0: &Spanned<T>) -> boolThis method tests for self and other values to be equal, and is used by ==. Read more
fn ne(&self, __arg_0: &Spanned<T>) -> bool[src]
fn ne(&self, __arg_0: &Spanned<T>) -> boolThis method tests for !=.
impl<T: Eq> Eq for Spanned<T>[src]
impl<T: Eq> Eq for Spanned<T>impl<T: Encodable> Encodable for Spanned<T>[src]
impl<T: Encodable> Encodable for Spanned<T>fn encode<__ST: Encoder>(&self, __arg_0: &mut __ST) -> Result<(), __ST::Error>[src]
fn encode<__ST: Encoder>(&self, __arg_0: &mut __ST) -> Result<(), __ST::Error>🔬 This is a nightly-only experimental API. (rustc_private)
this crate is being loaded from the sysroot, an unstable location; did you mean to load this crate from crates.io via Cargo.toml instead?
impl<T: Decodable> Decodable for Spanned<T>[src]
impl<T: Decodable> Decodable for Spanned<T>fn decode<__DT: Decoder>(__arg_0: &mut __DT) -> Result<Spanned<T>, __DT::Error>[src]
fn decode<__DT: Decoder>(__arg_0: &mut __DT) -> Result<Spanned<T>, __DT::Error>🔬 This is a nightly-only experimental API. (rustc_private)
this crate is being loaded from the sysroot, an unstable location; did you mean to load this crate from crates.io via Cargo.toml instead?
impl<T: Hash> Hash for Spanned<T>[src]
impl<T: Hash> Hash for Spanned<T>fn hash<__HT: Hasher>(&self, __arg_0: &mut __HT)[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[src]
fn hash_slice<H>(data: &[Self], state: &mut H) where
H: Hasher, Feeds a slice of this type into the given [Hasher]. Read more
impl<T: Debug> Debug for Spanned<T>[src]
impl<T: Debug> Debug for Spanned<T>fn fmt(&self, __arg_0: &mut Formatter) -> Result[src]
fn fmt(&self, __arg_0: &mut Formatter) -> ResultFormats the value using the given formatter. Read more
impl<T: Copy> Copy for Spanned<T>[src]
impl<T: Copy> Copy for Spanned<T>impl<T: ToTokens> ToTokens for Spanned<T>[src]
impl<T: ToTokens> ToTokens for Spanned<T>