[−][src]Enum darling::ast::GenericParam
A mirror of syn::GenericParam
which is generic over all its contents.
Variants
Type(T)
Lifetime(L)
Const(C)
Trait Implementations
impl<T> FromGenericParam for GenericParam<T, LifetimeDef, ConstParam> where
T: FromTypeParam,
[src]
T: FromTypeParam,
fn from_generic_param(
param: &GenericParam
) -> Result<GenericParam<T, LifetimeDef, ConstParam>, Error>
[src]
param: &GenericParam
) -> Result<GenericParam<T, LifetimeDef, ConstParam>, Error>
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, L, C> PartialEq<GenericParam<T, L, C>> for GenericParam<T, L, C> where
C: PartialEq<C>,
L: PartialEq<L>,
T: PartialEq<T>,
[src]
C: PartialEq<C>,
L: PartialEq<L>,
T: PartialEq<T>,
fn eq(&self, other: &GenericParam<T, L, C>) -> bool
[src]
fn ne(&self, other: &GenericParam<T, L, C>) -> bool
[src]
impl<T, L, C> Clone for GenericParam<T, L, C> where
C: Clone,
L: Clone,
T: Clone,
[src]
C: Clone,
L: Clone,
T: Clone,
fn clone(&self) -> GenericParam<T, L, C>
[src]
fn clone_from(&mut self, source: &Self)
1.0.0[src]
Performs copy-assignment from source
. Read more
impl<T, L, C> Debug for GenericParam<T, L, C> where
C: Debug,
L: Debug,
T: Debug,
[src]
C: Debug,
L: Debug,
T: Debug,
impl<T, L, C> Eq for GenericParam<T, L, C> where
C: Eq,
L: Eq,
T: Eq,
[src]
C: Eq,
L: Eq,
T: Eq,
impl<T> FromTypeParam for GenericParam<T, LifetimeDef, ConstParam> where
T: FromTypeParam,
[src]
T: FromTypeParam,
fn from_type_param(
type_param: &TypeParam
) -> Result<GenericParam<T, LifetimeDef, ConstParam>, Error>
[src]
type_param: &TypeParam
) -> Result<GenericParam<T, LifetimeDef, ConstParam>, Error>
Auto Trait Implementations
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,
Blanket Implementations
impl<T, U> Into for T where
U: From<T>,
[src]
U: From<T>,
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
impl<T> From for T
[src]
impl<T, U> TryFrom for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T> Borrow for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T, U> TryInto for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error
The type returned in the event of a conversion error.
fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>
[src]
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,