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§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 !Send for ConstructorVal
impl !Sync for ConstructorVal
impl Forget for ConstructorVal
impl Freeze for ConstructorVal
impl Move for ConstructorVal
impl RefUnwindSafe 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