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

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

Fields

span: Span<Pos>value: T

Methods

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

pub fn map<U, F>(self, f: F) -> Spanned<U, Pos> where
    F: FnMut(T) -> U, 
[src]

Trait Implementations

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

type Ident = T::Ident

fn env_type_of(&self, env: &dyn TypeEnv<Type = ArcType>) -> ArcType<Self::Ident>[src]

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

impl<Id> AsMut<Spanned<Type<Id, AstType<Id>>, ByteIndex>> for AstType<Id>[src]

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

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

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

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

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

fn clone_from(&mut self, source: &Self)
1.0.0
[src]

Performs copy-assignment from source. Read more

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

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

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

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

Blanket Implementations

impl<T, U> Into for T where
    U: From<T>, 
[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

impl<T> ToString for T where
    T: Display + ?Sized
[src]

impl<T> From for T[src]

impl<T, U> TryFrom for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T> Borrow for T where
    T: ?Sized
[src]

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> BorrowMut for T where
    T: ?Sized
[src]

impl<T, U> TryInto for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.