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§
impl<T: Clone> Clone for Spanned
impl<T: Debug> Debug for Spanned
impl<T, __D: SpanDecoder> Decodable<__D> for Spanned
fn decode(__decoder: &mut __D) -> Self
impl<T, __E: SpanEncoder> Encodable<__E> for Spanned
fn encode(&self, __encoder: &mut __E)
impl<T: Hash> Hash for Spanned
impl<T, __CTX> HashStable<__CTX> for Spanned
fn hash_stable(&self, __hcx: &mut __CTX, __hasher: &mut StableHasher)
impl<T: PartialEq> PartialEq for Spanned
fn eq(&self, other: &Spanned) -> bool
Tests for self and other values to be equal, and is used by ==.
fn ne(&self, other: &Rhs) -> bool
Tests for !=. The default implementation is almost always sufficient, and should not be overridden without very good reason.
impl<T: Copy> Copy for Spanned
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.