Enum darling_core::ast::GenericParam [−][src]
pub enum GenericParam<T = TypeParam, L = LifetimeDef, C = ConstParam> { Type(T), Lifetime(L), Const(C), }
A mirror of syn::GenericParam
which is generic over all its contents.
Variants
Trait Implementations
impl<T: Clone, L: Clone, C: Clone> Clone for GenericParam<T, L, C>
[src]
impl<T: Clone, L: Clone, C: Clone> Clone for GenericParam<T, L, C>
[src]fn clone(&self) -> GenericParam<T, L, C>
[src]
pub fn clone_from(&mut self, source: &Self)
1.0.0[src]
impl<T: FromTypeParam> FromGenericParam for GenericParam<T>
[src]
impl<T: FromTypeParam> FromGenericParam for GenericParam<T>
[src]fn from_generic_param(param: &GenericParam) -> Result<Self>
[src]
impl<T: FromTypeParam> FromTypeParam for GenericParam<T>
[src]
impl<T: FromTypeParam> FromTypeParam for GenericParam<T>
[src]fn from_type_param(type_param: &TypeParam) -> Result<Self>
[src]
impl<T, L, C> GenericParamExt for GenericParam<T, L, C>
[src]
impl<T, L, C> GenericParamExt for GenericParam<T, L, C>
[src]type TypeParam = T
The type this GenericParam uses to represent type params and their bounds
type LifetimeDef = L
type ConstParam = C
fn as_type_param(&self) -> Option<&T>
[src]
fn as_lifetime_def(&self) -> Option<&L>
[src]
fn as_const_param(&self) -> Option<&C>
[src]
impl<T: PartialEq, L: PartialEq, C: PartialEq> PartialEq<GenericParam<T, L, C>> for GenericParam<T, L, C>
[src]
impl<T: PartialEq, L: PartialEq, C: PartialEq> PartialEq<GenericParam<T, L, C>> for GenericParam<T, L, C>
[src]fn eq(&self, other: &GenericParam<T, L, C>) -> bool
[src]
fn ne(&self, other: &GenericParam<T, L, C>) -> bool
[src]
impl<T: Eq, L: Eq, C: Eq> Eq for GenericParam<T, L, C>
[src]
impl<T, L, C> StructuralEq for GenericParam<T, L, C>
[src]
impl<T, L, C> StructuralPartialEq for GenericParam<T, L, C>
[src]
Auto Trait Implementations
impl<T, L, C> RefUnwindSafe for GenericParam<T, L, C> where
C: RefUnwindSafe,
L: RefUnwindSafe,
T: RefUnwindSafe,
C: RefUnwindSafe,
L: RefUnwindSafe,
T: RefUnwindSafe,
impl<T, L, C> Send for GenericParam<T, L, C> where
C: Send,
L: Send,
T: Send,
C: Send,
L: Send,
T: Send,
impl<T, L, C> Sync for GenericParam<T, L, C> where
C: Sync,
L: Sync,
T: Sync,
C: Sync,
L: Sync,
T: Sync,
impl<T, L, C> Unpin for GenericParam<T, L, C> where
C: Unpin,
L: Unpin,
T: Unpin,
C: Unpin,
L: Unpin,
T: Unpin,
impl<T, L, C> UnwindSafe for GenericParam<T, L, C> where
C: UnwindSafe,
L: UnwindSafe,
T: UnwindSafe,
C: UnwindSafe,
L: UnwindSafe,
T: UnwindSafe,