pub struct ConstructorVal {
pub common: ConstantVal,
pub induct: Name,
pub cidx: u32,
pub num_params: u32,
pub num_fields: u32,
pub is_unsafe: bool,
}Expand description
Constructor declaration value.
Fields§
§common: ConstantValCommon fields.
induct: NameName of parent inductive type.
cidx: u32Constructor index (position in declaration order).
num_params: u32Number of inductive parameters.
num_fields: u32Number of fields (arity - nparams).
is_unsafe: boolWhether this is unsafe.
Trait Implementations§
Source§impl Clone for ConstructorVal
impl Clone for ConstructorVal
Source§fn clone(&self) -> ConstructorVal
fn clone(&self) -> ConstructorVal
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for ConstructorVal
impl Debug for ConstructorVal
Source§impl PartialEq for ConstructorVal
impl PartialEq for ConstructorVal
impl StructuralPartialEq for ConstructorVal
Auto Trait Implementations§
impl Freeze for ConstructorVal
impl RefUnwindSafe for ConstructorVal
impl Send for ConstructorVal
impl Sync for ConstructorVal
impl Unpin for ConstructorVal
impl UnsafeUnpin for ConstructorVal
impl UnwindSafe for ConstructorVal
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more