Struct syntex_syntax::codemap::Spanned [] [src]

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

Fields

node
span

Trait Implementations

impl<T: ToTokens> ToTokens for Spanned<T>

fn to_tokens(&self, cx: &ExtCtxt) -> Vec<TokenTree>

Derived Implementations

impl<T: Copy> Copy for Spanned<T>

impl<T: Debug> Debug for Spanned<T>

fn fmt(&self, __arg_0: &mut Formatter) -> Result

impl<T: Hash> Hash for Spanned<T>

fn hash<__H: Hasher>(&self, __arg_0: &mut __H)

fn hash_slice<H>(data: &[Self], state: &mut H) where H: Hasher

impl<T: Decodable> Decodable for Spanned<T>

fn decode<__D: Decoder>(__arg_0: &mut __D) -> Result<Spanned<T>, __D::Error>

impl<T: Encodable> Encodable for Spanned<T>

fn encode<__S: Encoder>(&self, __arg_0: &mut __S) -> Result<(), __S::Error>

impl<T: Eq> Eq for Spanned<T>

impl<T: PartialEq> PartialEq for Spanned<T>

fn eq(&self, __arg_0: &Spanned<T>) -> bool

fn ne(&self, __arg_0: &Spanned<T>) -> bool

impl<T: Clone> Clone for Spanned<T>

fn clone(&self) -> Spanned<T>

fn clone_from(&mut self, source: &Self)