Struct kailua_env::Spanned [] [src]

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

A value with optional Span.

Can be constructed with .with_loc(span) or .without_loc() from the WithLoc trait.

Fields

Methods

impl<T> Spanned<T>
[src]

Trait Implementations

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

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> Deref for Spanned<T>
[src]

The resulting type after dereferencing

The method called to dereference a value

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

The method called to mutably dereference a value

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

Immutably borrows from an owned value. Read more

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

The span is ignored in the display.

Formats the value using the given formatter. Read more

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

The span is only printed (after the value) when the alternate flag is enabled.

Formats the value using the given formatter.