pub struct StructInfo {
pub mk: String,
pub num_params: usize,
pub projections: Vec<String>,
}Expand description
Metadata for a registered structure (record): its single constructor, how many leading type PARAMETERS it takes, and the projection function names in field order.
Fields§
§mk: StringThe constructor name (e.g. Prod_mk).
num_params: usizeNumber of leading type parameters (e.g. 2 for Prod A B).
projections: Vec<String>Projection definition names, in field order (e.g. [Prod_fst, Prod_snd]).
Trait Implementations§
Source§impl Clone for StructInfo
impl Clone for StructInfo
Source§fn clone(&self) -> StructInfo
fn clone(&self) -> StructInfo
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 StructInfo
impl RefUnwindSafe for StructInfo
impl Send for StructInfo
impl Sync for StructInfo
impl Unpin for StructInfo
impl UnsafeUnpin for StructInfo
impl UnwindSafe for StructInfo
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