Struct codemap::Spanned [] [src]

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

Associate a Span with a value of arbitrary type (e.g. an AST node).

Fields

Trait Implementations

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

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

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

This method tests for self and other values to be equal, and is used by ==. Read more

This method tests for !=.

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

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

Feeds this value into the given [Hasher]. Read more

Feeds a slice of this type into the given [Hasher]. Read more

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

Formats the value using the given formatter.

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

impl<T> Deref for Spanned<T>
[src]

The resulting type after dereferencing

The method called to dereference a value