pub struct ComptimeState { /* private fields */ }Expand description
编译时状态管理器。
维护编译时的内置定义和用户定义,支持状态注入到 VM 执行环境。
Implementations§
Source§impl ComptimeState
impl ComptimeState
Sourcepub fn inject_state(
&self,
capture: &mut OnionFastMap<Box<str>, OnionObject>,
) -> Result<(), RuntimeError>
pub fn inject_state( &self, capture: &mut OnionFastMap<Box<str>, OnionObject>, ) -> Result<(), RuntimeError>
Trait Implementations§
Auto Trait Implementations§
impl !RefUnwindSafe for ComptimeState
impl !UnwindSafe for ComptimeState
impl Freeze for ComptimeState
impl Send for ComptimeState
impl Sync for ComptimeState
impl Unpin for ComptimeState
impl UnsafeUnpin for ComptimeState
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