[−][src]Enum rustc_resolve::late::lifetimes::Elide

pub(in late::lifetimes) enum Elide {
    FreshLateAnon(Cell<u32>),
    Exact(Region),
    Error(Vec<ElisionFailureInfo>),
    Forbid,
}

Variants

FreshLateAnon(Cell<u32>)

Use a fresh anonymous late-bound lifetime each time, by incrementing the counter to generate sequential indices.

Exact(Region)

Always use this one lifetime.

Error(Vec<ElisionFailureInfo>)

Less or more than one lifetime were found, error on unspecified.

Forbid

Forbid lifetime elision inside of a larger scope where it would be permitted. For example, in let position impl trait.

Trait Implementations

impl Clone for Elide[src]

impl Debug for Elide[src]

Auto Trait Implementations

impl !RefUnwindSafe for Elide

impl !Send for Elide

impl !Sync for Elide

impl Unpin for Elide

impl UnwindSafe for Elide

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.