[][src]Struct asciifile::spanned::Spanned

pub struct Spanned<'f, T> {
    pub span: Span<'f>,
    pub data: T,
}

Fields

Methods

impl<'f, T> Spanned<'f, T>
[src]

Combine two Spanneds, aplying f to compute the contents of the new Spanned. There are also variants of this where LHS/Self, RHS, or both are boxed. These are necassary to avoid reallocation when calling this.

Trait Implementations

impl<'f, T> PartialEq<Spanned<'f, T>> for Spanned<'f, T> where
    T: PartialEq
[src]

This only compares the data! I.e. two Spanneds are equal even if they point to two different spans in the source file, as long as the content is the same.

This method tests for !=.

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

Performs copy-assignment from source. Read more

impl<'f, T> Eq for Spanned<'f, T> where
    T: Eq
[src]

impl<T, '_> Display for Spanned<'_, T> where
    T: Display
[src]

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

impl<'f, T> Deref for Spanned<'f, T>
[src]

The resulting type after dereferencing.

Auto Trait Implementations

impl<'f, T> Send for Spanned<'f, T> where
    T: Send

impl<'f, T> Sync for Spanned<'f, T> where
    T: Sync

Blanket Implementations

impl<T> From for T
[src]

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

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

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

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

🔬 This is a nightly-only experimental API. (try_from)

The type returned in the event of a conversion error.

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

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

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

🔬 This is a nightly-only experimental API. (try_from)

The type returned in the event of a conversion error.

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