Spanned in rustc_span::source_map - Rust (original) (raw)

pub struct Spanned<T> {
    pub node: T,
    pub span: Span,
}

Fields§

§node: T§span: [Span](../struct.Span.html "struct rustc_span::Span")

Trait Implementations§

Source§

impl<T: Clone> Clone for Spanned

Source§

impl<T: Debug> Debug for Spanned

Source§

impl<T, __D: SpanDecoder> Decodable<__D> for Spanned

Source§

fn decode(__decoder: &mut __D) -> Self

Source§

impl<T, __E: SpanEncoder> Encodable<__E> for Spanned

Source§

fn encode(&self, __encoder: &mut __E)

Source§

impl<T: Hash> Hash for Spanned

Source§

impl<T, __CTX> HashStable<__CTX> for Spanned

Source§

fn hash_stable(&self, __hcx: &mut __CTX, __hasher: &mut StableHasher)

Source§

impl<T: PartialEq> PartialEq for Spanned

Source§

fn eq(&self, other: &Spanned) -> bool

Tests for self and other values to be equal, and is used by ==.

1.0.0 · Source§

fn ne(&self, other: &Rhs) -> bool

Tests for !=. The default implementation is almost always sufficient, and should not be overridden without very good reason.

Source§

impl<T: Copy> Copy for Spanned

Source§

impl StructuralPartialEq for Spanned

Auto Trait Implementations§

Blanket Implementations§

Layout§

Note: Unable to compute type layout, possibly due to this type having generic parameters. Layout can only be computed for concrete, fully-instantiated types.