pub struct Env {
pub task_scope: TaskScope,
pub vars: HashMap<String, Value>,
pub mutables: HashSet<String>,
pub aliases: HashMap<String, String>,
pub enums: HashMap<String, EnumDecl>,
pub fields: HashMap<String, Value>,
pub materials: HashMap<String, Value>,
pub laws: HashMap<String, Value>,
}Fields§
§task_scope: TaskScopeRuntime task ownership. Clones share effects; Default starts an isolated scope. This opaque value is not a serializable grant or human delegation.
vars: HashMap<String, Value>§mutables: HashSet<String>Set of variable names that were declared with mut (T10).
aliases: HashMap<String, String>Import alias -> namespace name (e.g. g -> graph).
Populated from import "vibe:0.1/graph" as g; declarations.
enums: HashMap<String, EnumDecl>User-defined enum declarations (T9). Maps enum name -> declaration.
fields: HashMap<String, Value>Field declarations (T28). Maps field name -> record Value.
materials: HashMap<String, Value>Material declarations (T29). Maps material name -> record Value.
laws: HashMap<String, Value>Law declarations (T30). Maps law name -> record Value.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Env
impl RefUnwindSafe for Env
impl Send for Env
impl Sync for Env
impl Unpin for Env
impl UnsafeUnpin for Env
impl UnwindSafe for Env
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