Enum impl_tools_lib::generics::GenericParam
source · [−]pub enum GenericParam {
Type(TypeParam),
Lifetime(LifetimeDef),
Const(ConstParam),
}
Expand description
A generic type parameter, lifetime, or const generic
This is a custom variant of syn::GenericParam
which supports trait
as a parameter bound.
Variants
Type(TypeParam)
Type parameter
Lifetime(LifetimeDef)
Lifetime parameter
Const(ConstParam)
const
parameter
Trait Implementations
Auto Trait Implementations
impl RefUnwindSafe for GenericParam
impl !Send for GenericParam
impl !Sync for GenericParam
impl Unpin for GenericParam
impl UnwindSafe for GenericParam
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more