[−][src]Enum rustc_hir::def::CtorKind

pub enum CtorKind {
    Fn,
    Const,
    Fictive,
}

Variants

Fn

Constructor function automatically created by a tuple struct/variant.

Const

Constructor constant automatically created by a unit struct/variant.

Fictive

Unusable name in value namespace created by a struct variant.

Implementations

impl CtorKind[src]

pub fn from_ast(vdata: &VariantData) -> CtorKind[src]

pub fn from_hir(vdata: &VariantData<'_>) -> CtorKind[src]

Trait Implementations

impl Clone for CtorKind[src]

impl Copy for CtorKind[src]

impl Debug for CtorKind[src]

impl<__D: Decoder> Decodable<__D> for CtorKind[src]

impl<__E: Encoder> Encodable<__E> for CtorKind[src]

impl Eq for CtorKind[src]

impl Hash for CtorKind[src]

impl<__CTX> HashStable<__CTX> for CtorKind where
    __CTX: HashStableContext, 
[src]

impl PartialEq<CtorKind> for CtorKind[src]

impl StructuralEq for CtorKind[src]

impl StructuralPartialEq for CtorKind[src]

Auto Trait Implementations

impl RefUnwindSafe for CtorKind

impl Send for CtorKind

impl Sync for CtorKind

impl Unpin for CtorKind

impl UnwindSafe for CtorKind

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.