pub(crate) struct TypeAlias {
pub(crate) generics: Generics,
pub(crate) type_: Type,
pub(crate) inner_type: Option<TypeAliasInnerType>,
}Fields§
§generics: Generics§type_: Type§inner_type: Option<TypeAliasInnerType>Inner AdtDef type, ie type TyKind = IrTyKind<Adt, Ty>,
to be shown directly on the typedef page.
Trait Implementations§
Source§impl FromClean<TypeAlias> for TypeAlias
impl FromClean<TypeAlias> for TypeAlias
fn from_clean(type_alias: &TypeAlias, renderer: &JsonRenderer<'_>) -> Self
Auto Trait Implementations§
impl DynSend for TypeAliaswhere
ThinVec<GenericParamDef>: DynSend,
ThinVec<WherePredicate>: DynSend,
ThinVec<PathSegment>: DynSend,
Vec<PolyTrait>: DynSend,
Box<BareFunctionDecl>: DynSend,
Vec<Type>: DynSend,
Box<Type>: DynSend,
Box<str>: DynSend,
Box<QPathData>: DynSend,
Box<Path>: DynSend,
Vec<GenericBound>: DynSend,
Box<UnsafeBinderTy>: DynSend,
Vec<Item>: DynSend,
impl DynSync for TypeAliaswhere
ThinVec<GenericParamDef>: DynSync,
ThinVec<WherePredicate>: DynSync,
ThinVec<PathSegment>: DynSync,
Vec<PolyTrait>: DynSync,
Box<BareFunctionDecl>: DynSync,
Vec<Type>: DynSync,
Box<Type>: DynSync,
Box<str>: DynSync,
Box<QPathData>: DynSync,
Box<Path>: DynSync,
Vec<GenericBound>: DynSync,
Box<UnsafeBinderTy>: DynSync,
Vec<Item>: DynSync,
impl Forget for TypeAlias
impl Freeze for TypeAliaswhere
*const Header is !null: Freeze,
PhantomData<GenericParamDef>: Freeze,
PhantomData<WherePredicate>: Freeze,
PhantomData<PathSegment>: Freeze,
*const u8 is !null: Freeze,
PhantomData<PolyTrait>: Freeze,
*const BareFunctionDecl is !null: Freeze,
PhantomData<BareFunctionDecl>: Freeze,
PhantomData<Type>: Freeze,
*const Type is !null: Freeze,
*const str is !null: Freeze,
PhantomData<str>: Freeze,
*const QPathData is !null: Freeze,
PhantomData<QPathData>: Freeze,
*const Path is !null: Freeze,
PhantomData<Path>: Freeze,
PhantomData<GenericBound>: Freeze,
*const UnsafeBinderTy is !null: Freeze,
PhantomData<UnsafeBinderTy>: Freeze,
PhantomData<Item>: Freeze,
PhantomData<fn(&VariantIdx)>: Freeze,
impl Move for TypeAlias
impl RefUnwindSafe for TypeAlias
impl Send for TypeAliaswhere
ThinVec<GenericParamDef>: Send,
ThinVec<WherePredicate>: Send,
ThinVec<PathSegment>: Send,
RawVecInner: Send,
ThinVec<Lifetime>: Send,
ThinVec<GenericBound>: Send,
BoxRaw<Type>: Send,
BoxRaw<String>: Send,
BoxRaw<BareFunctionDecl>: Send,
BoxRaw<str>: Send,
BoxRaw<QPathData>: Send,
BoxRaw<Path>: Send,
BoxRaw<UnsafeBinderTy>: Send,
IndexVec<VariantIdx, Item>: Send,
BoxRaw<ItemInner>: Send,
impl Sync for TypeAliaswhere
ThinVec<GenericParamDef>: Sync,
ThinVec<WherePredicate>: Sync,
ThinVec<PathSegment>: Sync,
RawVecInner: Sync,
ThinVec<Lifetime>: Sync,
ThinVec<GenericBound>: Sync,
BoxRaw<Type>: Sync,
BoxRaw<String>: Sync,
BoxRaw<BareFunctionDecl>: Sync,
BoxRaw<str>: Sync,
BoxRaw<QPathData>: Sync,
BoxRaw<Path>: Sync,
BoxRaw<UnsafeBinderTy>: Sync,
BoxRaw<ItemInner>: Sync,
impl Unpin for TypeAlias
impl UnsafeUnpin for TypeAliaswhere
*const Header is !null: UnsafeUnpin,
PhantomData<GenericParamDef>: UnsafeUnpin,
PhantomData<WherePredicate>: UnsafeUnpin,
PhantomData<PathSegment>: UnsafeUnpin,
*const u8 is !null: UnsafeUnpin,
PhantomData<PolyTrait>: UnsafeUnpin,
*const BareFunctionDecl is !null: UnsafeUnpin,
PhantomData<BareFunctionDecl>: UnsafeUnpin,
PhantomData<Type>: UnsafeUnpin,
*const Type is !null: UnsafeUnpin,
*const str is !null: UnsafeUnpin,
PhantomData<str>: UnsafeUnpin,
*const QPathData is !null: UnsafeUnpin,
PhantomData<QPathData>: UnsafeUnpin,
*const Path is !null: UnsafeUnpin,
PhantomData<Path>: UnsafeUnpin,
PhantomData<GenericBound>: UnsafeUnpin,
*const UnsafeBinderTy is !null: UnsafeUnpin,
PhantomData<UnsafeBinderTy>: UnsafeUnpin,
PhantomData<Item>: UnsafeUnpin,
PhantomData<fn(&VariantIdx)>: UnsafeUnpin,
impl UnwindSafe for TypeAliaswhere
NonNull<Header>: UnwindSafe,
RawVecInner: UnwindSafe,
BoxRaw<BareFunctionDecl>: UnwindSafe,
BoxRaw<Type>: UnwindSafe,
BoxRaw<str>: UnwindSafe,
BoxRaw<QPathData>: UnwindSafe,
BoxRaw<Path>: UnwindSafe,
BoxRaw<UnsafeBinderTy>: UnwindSafe,
BoxRaw<ConstantExpr>: UnwindSafe,
BoxRaw<String>: UnwindSafe,
BoxRaw<ItemInner>: UnwindSafe,
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
§fn in_current_span(self) -> Instrumented<Self> ⓘ
fn in_current_span(self) -> Instrumented<Self> ⓘ
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more§impl<T> WithSubscriber for T
impl<T> WithSubscriber for T
§fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self> ⓘwhere
S: Into<Dispatch>,
fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self> ⓘwhere
S: Into<Dispatch>,
§fn with_current_subscriber(self) -> WithDispatch<Self> ⓘ
fn with_current_subscriber(self) -> WithDispatch<Self> ⓘ
Layout§
Note: Most layout information is completely unstable and may even differ between compilations. 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: 80 bytes