[][src]Struct lip::Located

pub struct Located<A> {
    pub value: A,
    pub from: Location,
    pub to: Location,
}

Add location information to any type.

Used by located to add from and to locations to any captured values for more precise error messages.

Fields

value: Afrom: Locationto: Location

Trait Implementations

impl<A: Clone> Clone for Located<A>[src]

impl<A: Debug> Debug for Located<A>[src]

impl<A: Eq> Eq for Located<A>[src]

impl<A: PartialEq> PartialEq<Located<A>> for Located<A>[src]

impl<A> StructuralEq for Located<A>[src]

impl<A> StructuralPartialEq for Located<A>[src]

Auto Trait Implementations

impl<A> RefUnwindSafe for Located<A> where
    A: RefUnwindSafe

impl<A> Send for Located<A> where
    A: Send

impl<A> Sync for Located<A> where
    A: Sync

impl<A> Unpin for Located<A> where
    A: Unpin

impl<A> UnwindSafe for Located<A> where
    A: UnwindSafe

Blanket Implementations

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

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

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

impl<T> From<T> for T[src]

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

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

type Owned = T

The resulting type after obtaining ownership.

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

type Error = Infallible

The type returned in the event of a conversion error.

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

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

The type returned in the event of a conversion error.