pub struct InductiveTypeInfo {
pub name: Name,
pub num_params: u32,
pub num_indices: u32,
pub num_constructors: usize,
pub is_prop: bool,
pub is_recursive: bool,
pub is_mutual: bool,
pub constructor_names: Vec<Name>,
}Expand description
Summary information about an inductive type (for display/LSP use).
Fields§
§name: NameType name.
num_params: u32Number of parameters.
num_indices: u32Number of indices.
num_constructors: usizeNumber of constructors.
is_prop: boolWhether the type is in Prop.
is_recursive: boolWhether the type is recursive (has recursive constructors).
is_mutual: boolWhether the type is mutually inductive.
constructor_names: Vec<Name>Constructor names.
Implementations§
Trait Implementations§
Source§impl Clone for InductiveTypeInfo
impl Clone for InductiveTypeInfo
Source§fn clone(&self) -> InductiveTypeInfo
fn clone(&self) -> InductiveTypeInfo
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 moreAuto Trait Implementations§
impl Freeze for InductiveTypeInfo
impl RefUnwindSafe for InductiveTypeInfo
impl Send for InductiveTypeInfo
impl Sync for InductiveTypeInfo
impl Unpin for InductiveTypeInfo
impl UnsafeUnpin for InductiveTypeInfo
impl UnwindSafe for InductiveTypeInfo
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