Struct gluon_base::pos::Spanned[][src]

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

Fields

Methods

impl<T, Pos> Spanned<T, Pos>
[src]

Trait Implementations

impl<Id> From<Spanned<Type<Id, AstType<Id>>, BytePos>> for AstType<Id>
[src]

Performs the conversion.

impl<T: Typed> Typed for Spanned<T, BytePos>
[src]

impl<E> AsDiagnostic for Spanned<E, BytePos> where
    E: AsDiagnostic
[src]

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

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

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

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

Formats the value using the given formatter. Read more

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

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

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

This method tests for !=.

impl<T: Display, Pos: Display + Copy> Display for Spanned<T, Pos>
[src]

Formats the value using the given formatter. Read more

Auto Trait Implementations

impl<T, Pos> Send for Spanned<T, Pos> where
    Pos: Send,
    T: Send

impl<T, Pos> Sync for Spanned<T, Pos> where
    Pos: Sync,
    T: Sync