#[non_exhaustive]pub enum Generic {
Lifetime(Lifetime),
Type(GenericType),
Const(Const),
}🔬This is a nightly-only experimental API. (
type_info #146922)Expand description
Compile-time type information about instantiated generics of structs, enum and union variants.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
Lifetime(Lifetime)
🔬This is a nightly-only experimental API. (
type_info #146922)Lifetimes.
Type(GenericType)
🔬This is a nightly-only experimental API. (
type_info #146922)Types.
Const(Const)
🔬This is a nightly-only experimental API. (
type_info #146922)Const parameters.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Generic
impl RefUnwindSafe for Generic
impl Send for Generic
impl Sync for Generic
impl Unpin for Generic
impl UnwindSafe for Generic
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