Enum darling::ast::GenericParam [−][src]
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]
C: Clone,
T: Clone,
L: Clone,
pub fn clone(&self) -> GenericParam<T, L, C>
[src]
pub fn clone_from(&mut self, source: &Self)
1.0.0[src]
impl<T, L, C> Debug for GenericParam<T, L, C> where
C: Debug,
T: Debug,
L: Debug,
[src]
C: Debug,
T: Debug,
L: Debug,
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> FromGenericParam for GenericParam<T, LifetimeDef, ConstParam> where
T: FromTypeParam,
[src]
T: FromTypeParam,
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]
T: FromTypeParam,
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]
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]
C: PartialEq<C>,
T: PartialEq<T>,
L: PartialEq<L>,
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> 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,
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
pub fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
pub fn to_owned(&self) -> T
[src]
pub fn clone_into(&self, target: &mut T)
[src]
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
pub fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,