pub struct InductiveVal {
pub common: ConstantVal,
pub num_params: u32,
pub num_indices: u32,
pub all: Vec<Name>,
pub ctors: Vec<Name>,
pub num_nested: u32,
pub is_rec: bool,
pub is_unsafe: bool,
pub is_reflexive: bool,
pub is_prop: bool,
}Expand description
Inductive type declaration value.
Fields§
§common: ConstantValCommon fields.
num_params: u32Number of parameters (uniform across constructors).
num_indices: u32Number of indices (vary per constructor).
all: Vec<Name>All inductive types in mutual declaration.
ctors: Vec<Name>Constructor names.
num_nested: u32Number of nested inductive uses.
is_rec: boolWhether this type is recursively defined.
is_unsafe: boolWhether this is unsafe.
is_reflexive: boolWhether this is reflexive (all arguments are params).
is_prop: boolWhether this type lives in Prop.
Trait Implementations§
Source§impl Clone for InductiveVal
impl Clone for InductiveVal
Source§fn clone(&self) -> InductiveVal
fn clone(&self) -> InductiveVal
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 InductiveVal
impl Debug for InductiveVal
Source§impl PartialEq for InductiveVal
impl PartialEq for InductiveVal
impl StructuralPartialEq for InductiveVal
Auto Trait Implementations§
impl Freeze for InductiveVal
impl RefUnwindSafe for InductiveVal
impl Send for InductiveVal
impl Sync for InductiveVal
impl Unpin for InductiveVal
impl UnsafeUnpin for InductiveVal
impl UnwindSafe for InductiveVal
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