Enum rustc_hir::OpaqueTyOrigin [−][src]
pub enum OpaqueTyOrigin {
FnReturn,
AsyncFn,
Binding,
TyAlias,
Misc,
}Expand description
From whence the opaque type came.
Variants
-> impl Trait
async fn
let _: impl Trait = ...
type aliases: type Foo = impl Trait;
Impl trait consts, statics, bounds.
Trait Implementations
Auto Trait Implementations
impl RefUnwindSafe for OpaqueTyOriginimpl Send for OpaqueTyOriginimpl Sync for OpaqueTyOriginimpl Unpin for OpaqueTyOriginimpl UnwindSafe for OpaqueTyOriginBlanket Implementations
Mutably borrows from an owned value. Read more
Layout
Note: Most layout information is completely unstable and may be different between compiler versions and platforms. The only exception is types with certain repr(...) attributes. Please see the Rust Reference’s “Type Layout” chapter for details on type layout guarantees.
Size: 1 byte