[−][src]Enum rustdoc::clean::types::GenericParamDefKind

pub(crate) enum GenericParamDefKind {
    Lifetime,
    Type {
        did: DefId,
        bounds: Vec<GenericBound>,
        default: Option<Type>,
        synthetic: Option<SyntheticTyParamKind>,
    },
    Const {
        did: DefId,
        ty: Type,
    },
}

Variants

Lifetime
Type

Fields of Type

did: DefIdbounds: Vec<GenericBound>default: Option<Type>synthetic: Option<SyntheticTyParamKind>
Const

Fields of Const

did: DefIdty: Type

Implementations

impl GenericParamDefKind[src]

pub(crate) fn is_type(&self) -> bool[src]

pub(crate) fn get_type(&self) -> Option<Type>[src]

Trait Implementations

impl Clone for GenericParamDefKind[src]

impl Debug for GenericParamDefKind[src]

impl Eq for GenericParamDefKind[src]

impl Hash for GenericParamDefKind[src]

impl PartialEq<GenericParamDefKind> for GenericParamDefKind[src]

impl StructuralEq for GenericParamDefKind[src]

impl StructuralPartialEq for GenericParamDefKind[src]

Auto Trait Implementations

impl !RefUnwindSafe for GenericParamDefKind

impl !Send for GenericParamDefKind

impl !Sync for GenericParamDefKind

impl Unpin for GenericParamDefKind

impl !UnwindSafe for GenericParamDefKind

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized, 
[src]

impl<T> Borrow<T> for T where
    T: ?Sized, 
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized, 
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> ToOwned for T where
    T: Clone, 
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

impl<V, T> VZip<V> for T where
    V: MultiLane<T>, 

impl<T> WithConstness for T[src]