[][src]Struct rustpython_parser::ast::Located

pub struct Located<T> {
    pub location: Location,
    pub node: T,
}

Fields

location: Locationnode: T

Implementations

impl Located<ExpressionType>[src]

pub fn name(&self) -> &'static str[src]

Returns a short name for the node suitable for use in error messages.

Trait Implementations

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

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

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

Auto Trait Implementations

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

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

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

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

impl<T> UnwindSafe for Located<T> where
    T: 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, 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.