pub struct RecInst {
pub type_name: Option<String>,
pub rt: RT,
pub path: SegPath,
pub parent: Option<Rc<RefCell<RecInst>>>,
pub slots: Vec<(String, Slot)>,
pub entry_order: Vec<String>,
pub extras: Vec<(String, Value)>,
pub menv: Option<Rc<Env>>,
}Expand description
a record instance: its type, its path, its slots
Fields§
§type_name: Option<String>the type’s name, when named
rt: RTthe type
path: SegPathits canonical path
parent: Option<Rc<RefCell<RecInst>>>the enclosing instance
slots: Vec<(String, Slot)>the slots, in declaration order
entry_order: Vec<String>the order the document supplied the members
extras: Vec<(String, Value)>members of an open record beyond its type
menv: Option<Rc<Env>>the module environment
Implementations§
Auto Trait Implementations§
impl !RefUnwindSafe for RecInst
impl !Send for RecInst
impl !Sync for RecInst
impl !UnwindSafe for RecInst
impl Freeze for RecInst
impl Unpin for RecInst
impl UnsafeUnpin for RecInst
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