pub struct Runtime {
pub registry: Registry,
}Expand description
One Soil runtime instance: the type registry and (in debug builds)
the allocation accounting. No global state — embedders hold this and
pass it explicitly; over the C ABI it is the SoilRuntime* handle.
An instance and every value created under it belong to one thread.
Fields§
§registry: RegistryImplementations§
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Runtime
impl !RefUnwindSafe for Runtime
impl !Send for Runtime
impl !Sync for Runtime
impl Unpin for Runtime
impl UnsafeUnpin for Runtime
impl !UnwindSafe for Runtime
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