Enum darling_core::ast::GenericParam [−][src]
pub enum GenericParam<T = TypeParam, L = LifetimeDef, C = ConstParam> {
Type(T),
Lifetime(L),
Const(C),
}
Expand description
A mirror of syn::GenericParam
which is generic over all its contents.
Variants
Trait Implementations
type TypeParam = T
type TypeParam = T
The type this GenericParam uses to represent type params and their bounds
type LifetimeDef = L
type ConstParam = C
If this GenericParam is a type param, get the underlying value.
If this GenericParam is a lifetime, get the underlying value.
If this GenericParam is a const param, get the underlying value.
impl<T: PartialEq, L: PartialEq, C: PartialEq> PartialEq<GenericParam<T, L, C>> for GenericParam<T, L, C>
impl<T: PartialEq, L: PartialEq, C: PartialEq> PartialEq<GenericParam<T, L, C>> for GenericParam<T, L, C>
This method tests for self
and other
values to be equal, and is used
by ==
. Read more
This method tests for !=
.
Auto Trait Implementations
impl<T, L, C> RefUnwindSafe for GenericParam<T, L, C> where
C: RefUnwindSafe,
L: RefUnwindSafe,
T: RefUnwindSafe,
impl<T, L, C> Send for GenericParam<T, L, C> where
C: Send,
L: Send,
T: Send,
impl<T, L, C> Sync for GenericParam<T, L, C> where
C: Sync,
L: Sync,
T: Sync,
impl<T, L, C> Unpin for GenericParam<T, L, C> where
C: Unpin,
L: Unpin,
T: Unpin,
impl<T, L, C> UnwindSafe for GenericParam<T, L, C> where
C: UnwindSafe,
L: UnwindSafe,
T: UnwindSafe,
Blanket Implementations
Mutably borrows from an owned value. Read more