pub struct Role {
pub name: String,
pub expr: ExprId,
pub def: DefId,
pub slots: Vec<(Slot, Value)>,
pub substs: Vec<RoleSubst>,
}Expand description
A role as dive-model’s binder split it: an expression evaluated in a
definition’s frame, with some of that frame’s slots bound to values.
Fields§
§name: StringThe name TLC reports.
expr: ExprIdThe expression.
def: DefIdThe definition whose frame it is evaluated in.
slots: Vec<(Slot, Value)>Slots of that frame bound by splitting (\E variables and inlined
parameters), with their values.
substs: Vec<RoleSubst>The INSTANCE substitutions active where splitting found the role
(it found it inside an instantiated definition).
Trait Implementations§
Auto Trait Implementations§
impl !RefUnwindSafe for Role
impl !UnwindSafe for Role
impl Forget for Role
impl Freeze for Role
impl Move for Role
impl Send for Role
impl Sync for Role
impl Unpin for Role
impl UnsafeUnpin for Role
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