Enum rustc_hir::def::CtorKind [−][src]
pub enum CtorKind {
Fn,
Const,
Fictive,
}Expand description
What kind of constructor something is.
Variants
Expand description
Constructor function automatically created by a tuple struct/variant.
Expand description
Constructor constant automatically created by a unit struct/variant.
Expand description
Unusable name in value namespace created by a struct variant.
Implementations
impl CtorKind[src]
impl CtorKind[src]pub fn from_ast(vdata: &VariantData) -> CtorKind[src]
pub fn from_hir(vdata: &VariantData<'_>) -> CtorKind[src]
Trait Implementations
impl<__CTX> HashStable<__CTX> for CtorKind where
__CTX: HashStableContext, [src]
impl<__CTX> HashStable<__CTX> for CtorKind where
__CTX: HashStableContext, [src]fn hash_stable(&self, __hcx: &mut __CTX, __hasher: &mut StableHasher)[src]
impl Copy for CtorKind[src]
impl Eq 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> BorrowMut<T> for T where
T: ?Sized, [src]
impl<T> BorrowMut<T> for T where
T: ?Sized, [src]pub fn borrow_mut(&mut self) -> &mut T[src]
pub fn borrow_mut(&mut self) -> &mut T[src]Mutably borrows from an owned value. Read more
impl<T> ToOwned for T where
T: Clone, [src]
impl<T> ToOwned for T where
T: Clone, [src]type Owned = T
type Owned = TThe resulting type after obtaining ownership.
pub fn to_owned(&self) -> T[src]
pub fn to_owned(&self) -> T[src]Creates owned data from borrowed data, usually by cloning. Read more
pub fn clone_into(&self, target: &mut T)[src]
pub fn clone_into(&self, target: &mut T)[src]🔬 This is a nightly-only experimental API. (toowned_clone_into)
recently added
Uses borrowed data to replace owned data, usually by cloning. Read more