Struct som_interpreter_ast::instance::Instance
source · pub struct Instance {
pub class: SOMRef<Class>,
pub locals: HashMap<String, Value>,
}
Expand description
Represents a generic (non-primitive) class instance.
Fields§
§class: SOMRef<Class>
The class of which this is an instance from.
locals: HashMap<String, Value>
This instance’s locals.
Implementations§
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Instance
impl !RefUnwindSafe for Instance
impl !Send for Instance
impl !Sync for Instance
impl Unpin for Instance
impl !UnwindSafe for Instance
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