pub struct DefaultFactory;Expand description
The built-in Factory: scalars, core collections, and class stubs.
Trait Implementations§
Source§impl Default for DefaultFactory
impl Default for DefaultFactory
Source§fn default() -> DefaultFactory
fn default() -> DefaultFactory
Returns the “default value” for a type. Read more
Source§impl Factory for DefaultFactory
impl Factory for DefaultFactory
Source§fn opaque(&self, value: Arc<dyn RuntimeObject>) -> Result<Value>
fn opaque(&self, value: Arc<dyn RuntimeObject>) -> Result<Value>
Wraps an arbitrary runtime object as an opaque value.
Source§fn class_stub(&self, id: ClassId, symbol: Symbol) -> Result<Value>
fn class_stub(&self, id: ClassId, symbol: Symbol) -> Result<Value>
Builds a class value from a class id and symbol.
Source§fn table(&self, entries: Vec<(Symbol, Value)>) -> Result<Value>
fn table(&self, entries: Vec<(Symbol, Value)>) -> Result<Value>
Builds a table value from its entries.
Auto Trait Implementations§
impl Freeze for DefaultFactory
impl RefUnwindSafe for DefaultFactory
impl Send for DefaultFactory
impl Sync for DefaultFactory
impl Unpin for DefaultFactory
impl UnsafeUnpin for DefaultFactory
impl UnwindSafe for DefaultFactory
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