Enum darling::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, L, C> Clone for GenericParam<T, L, C> where
C: Clone,
T: Clone,
L: Clone,
[src]
impl<T, L, C> Clone for GenericParam<T, L, C> where
C: Clone,
T: Clone,
L: Clone,
[src]pub fn clone(&self) -> GenericParam<T, L, C>
[src]
pub fn clone_from(&mut self, source: &Self)
1.0.0[src]
impl<T> FromGenericParam for GenericParam<T, LifetimeDef, ConstParam> where
T: FromTypeParam,
[src]
impl<T> FromGenericParam for GenericParam<T, LifetimeDef, ConstParam> where
T: FromTypeParam,
[src]pub fn from_generic_param(
param: &GenericParam
) -> Result<GenericParam<T, LifetimeDef, ConstParam>, Error>
[src]
param: &GenericParam
) -> Result<GenericParam<T, LifetimeDef, ConstParam>, Error>
impl<T> FromTypeParam for GenericParam<T, LifetimeDef, ConstParam> where
T: FromTypeParam,
[src]
impl<T> FromTypeParam for GenericParam<T, LifetimeDef, ConstParam> where
T: FromTypeParam,
[src]pub fn from_type_param(
type_param: &TypeParam
) -> Result<GenericParam<T, LifetimeDef, ConstParam>, Error>
[src]
type_param: &TypeParam
) -> Result<GenericParam<T, LifetimeDef, ConstParam>, Error>
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
pub fn as_type_param(&self) -> Option<&T>
[src]
pub fn as_lifetime_def(&self) -> Option<&L>
[src]
pub fn as_const_param(&self) -> Option<&C>
[src]
impl<T, L, C> PartialEq<GenericParam<T, L, C>> for GenericParam<T, L, C> where
C: PartialEq<C>,
T: PartialEq<T>,
L: PartialEq<L>,
[src]
impl<T, L, C> PartialEq<GenericParam<T, L, C>> for GenericParam<T, L, C> where
C: PartialEq<C>,
T: PartialEq<T>,
L: PartialEq<L>,
[src]pub fn eq(&self, other: &GenericParam<T, L, C>) -> bool
[src]
pub fn ne(&self, other: &GenericParam<T, L, C>) -> bool
[src]
impl<T, L, C> Eq for GenericParam<T, L, C> where
C: Eq,
T: Eq,
L: Eq,
[src]
C: Eq,
T: Eq,
L: Eq,
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,