Struct rustc_span::source_map::Spanned
source · pub struct Spanned<T> {
pub node: T,
pub span: Span,
}
Fields§
§node: T
§span: Span
Trait Implementations§
source§impl<T, __CTX> HashStable<__CTX> for Spanned<T>where
__CTX: HashStableContext,
T: HashStable<__CTX>,
impl<T, __CTX> HashStable<__CTX> for Spanned<T>where
__CTX: HashStableContext,
T: HashStable<__CTX>,
fn hash_stable(&self, __hcx: &mut __CTX, __hasher: &mut StableHasher)
impl<T: Copy> Copy for Spanned<T>
Auto Trait Implementations§
impl<T> RefUnwindSafe for Spanned<T>where
T: RefUnwindSafe,
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,
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.