[][src]Struct syntax::source_map::Spanned

pub struct Spanned<T> {
    pub node: T,
    pub span: Span,
}
⚙️ This is an internal compiler API. (rustc_private)

This crate is being loaded from the sysroot, a permanently unstable location for private compiler dependencies. It is not intended for general use. Prefer using a public version of this crate from crates.io via Cargo.toml.

Fields

node: T
⚙️ This is an internal compiler API. (rustc_private)

This crate is being loaded from the sysroot, a permanently unstable location for private compiler dependencies. It is not intended for general use. Prefer using a public version of this crate from crates.io via Cargo.toml.

span: Span
⚙️ This is an internal compiler API. (rustc_private)

This crate is being loaded from the sysroot, a permanently unstable location for private compiler dependencies. It is not intended for general use. Prefer using a public version of this crate from crates.io via Cargo.toml.

Trait Implementations

impl<T, __CTX> HashStable<__CTX> for Spanned<T> where
    T: HashStable<__CTX>,
    __CTX: HashStableContext
[src]

impl<T> Encodable for Spanned<T> where
    T: Encodable
[src]

impl<T> Copy for Spanned<T> where
    T: Copy
[src]

impl<T> Debug for Spanned<T> where
    T: Debug
[src]

impl<T> Decodable for Spanned<T> where
    T: Decodable
[src]

impl<T> Clone for Spanned<T> where
    T: Clone
[src]

impl<T: HasAttrs> HasAttrs for Spanned<T>[src]

Auto Trait Implementations

impl<T> !Send for Spanned<T>

impl<T> !Sync for Spanned<T>

impl<T> Unpin for Spanned<T> where
    T: Unpin

impl<T> UnwindSafe for Spanned<T> where
    T: UnwindSafe

impl<T> RefUnwindSafe for Spanned<T> where
    T: RefUnwindSafe

Blanket Implementations

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = !

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Erased for T[src]

impl<T> Encodable for T where
    T: UseSpecializedEncodable + ?Sized
[src]

impl<T> Decodable for T where
    T: UseSpecializedDecodable
[src]

impl<E> SpecializationError for E[src]