[−][src]Enum rustc_hir::hir::OpaqueTyOrigin

pub enum OpaqueTyOrigin {
    FnReturn,
    AsyncFn,
    Binding,
    Misc,
}

From whence the opaque type came.

Variants

FnReturn

-> impl Trait

AsyncFn

async fn

Binding

let _: impl Trait = ...

Misc

Impl trait in type aliases, consts, statics, bounds.

Trait Implementations

impl Clone for OpaqueTyOrigin[src]

impl Copy for OpaqueTyOrigin[src]

impl Debug for OpaqueTyOrigin[src]

impl<__D: Decoder> Decodable<__D> for OpaqueTyOrigin[src]

impl<__E: Encoder> Encodable<__E> for OpaqueTyOrigin[src]

impl<__CTX> HashStable<__CTX> for OpaqueTyOrigin where
    __CTX: HashStableContext, 
[src]

Auto Trait Implementations

impl RefUnwindSafe for OpaqueTyOrigin

impl Send for OpaqueTyOrigin

impl Sync for OpaqueTyOrigin

impl Unpin for OpaqueTyOrigin

impl UnwindSafe for OpaqueTyOrigin

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.