[][src]Struct syn::QSelf

pub struct QSelf {
    pub lt_token: Lt,
    pub ty: Box<Type>,
    pub position: usize,
    pub as_token: Option<As>,
    pub gt_token: Gt,
}

The explicit Self type in a qualified path: the T in <T as Display>::fmt.

The actual path, including the trait and the associated item, is stored separately. The position field represents the index of the associated item qualified with this Self type.

<Vec<T> as a::b::Trait>::AssociatedItem
 ^~~~~~    ~~~~~~~~~~~~~~^
 ty        position = 3

<Vec<T>>::AssociatedItem
 ^~~~~~   ^
 ty       position = 0

This type is available if Syn is built with the "derive" or "full" feature.

Fields

Trait Implementations

impl PartialEq<QSelf> for QSelf
[src]

impl Clone for QSelf
[src]

Performs copy-assignment from source. Read more

impl Eq for QSelf
[src]

impl Hash for QSelf
[src]

Feeds a slice of this type into the given [Hasher]. Read more

impl Debug for QSelf
[src]

Auto Trait Implementations

impl !Send for QSelf

impl !Sync for QSelf

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, 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> 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]

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

The type returned in the event of a conversion error.