pub enum MiraManageable {
Value(MiraValue),
String(String),
Array(Box<dyn MiraArray>),
Record(Box<dyn MiraRecord>),
Function(Rc<dyn MiraFunction>),
Module(Box<dyn MiraModule>),
}Expand description
An owned value waiting to be inserted into a Runtime arena.
Variants§
Value(MiraValue)
A value whose payload is already inline or already belongs to this Runtime.
String(String)
An owned string.
Array(Box<dyn MiraArray>)
An owned array implementation.
Record(Box<dyn MiraRecord>)
An owned record implementation.
Function(Rc<dyn MiraFunction>)
An owned callable implementation.
Module(Box<dyn MiraModule>)
An owned module implementation.
Implementations§
Source§impl MiraManageable
impl MiraManageable
Sourcepub fn value_type(&self) -> MiraType
pub fn value_type(&self) -> MiraType
Return the MiraScript type of this value.
Source§impl MiraManageable
impl MiraManageable
Sourcepub fn from_array(value: impl MiraArray) -> Self
pub fn from_array(value: impl MiraArray) -> Self
Wrap an array implementation for insertion into a Runtime.
Sourcepub fn from_record(value: impl MiraRecord) -> Self
pub fn from_record(value: impl MiraRecord) -> Self
Wrap a record implementation for insertion into a Runtime.
Sourcepub fn from_function(value: impl MiraFunction) -> Self
pub fn from_function(value: impl MiraFunction) -> Self
Wrap a function implementation for insertion into a Runtime.
Sourcepub fn from_module(value: impl MiraModule) -> Self
pub fn from_module(value: impl MiraModule) -> Self
Wrap a module implementation for insertion into a Runtime.
Trait Implementations§
Source§impl From<&str> for MiraManageable
impl From<&str> for MiraManageable
Source§impl From<()> for MiraManageable
impl From<()> for MiraManageable
Source§impl<T0, T1> From<(T0, T1)> for MiraManageablewhere
T0: MiraField,
T1: MiraField,
impl<T0, T1> From<(T0, T1)> for MiraManageablewhere
T0: MiraField,
T1: MiraField,
Source§impl<T0, T1, T2> From<(T0, T1, T2)> for MiraManageablewhere
T0: MiraField,
T1: MiraField,
T2: MiraField,
impl<T0, T1, T2> From<(T0, T1, T2)> for MiraManageablewhere
T0: MiraField,
T1: MiraField,
T2: MiraField,
Source§fn from(value: (T0, T1, T2)) -> Self
fn from(value: (T0, T1, T2)) -> Self
Converts to this type from the input type.
Source§impl<T0, T1, T2, T3> From<(T0, T1, T2, T3)> for MiraManageablewhere
T0: MiraField,
T1: MiraField,
T2: MiraField,
T3: MiraField,
impl<T0, T1, T2, T3> From<(T0, T1, T2, T3)> for MiraManageablewhere
T0: MiraField,
T1: MiraField,
T2: MiraField,
T3: MiraField,
Source§fn from(value: (T0, T1, T2, T3)) -> Self
fn from(value: (T0, T1, T2, T3)) -> Self
Converts to this type from the input type.
Source§impl<T0, T1, T2, T3, T4> From<(T0, T1, T2, T3, T4)> for MiraManageablewhere
T0: MiraField,
T1: MiraField,
T2: MiraField,
T3: MiraField,
T4: MiraField,
impl<T0, T1, T2, T3, T4> From<(T0, T1, T2, T3, T4)> for MiraManageablewhere
T0: MiraField,
T1: MiraField,
T2: MiraField,
T3: MiraField,
T4: MiraField,
Source§fn from(value: (T0, T1, T2, T3, T4)) -> Self
fn from(value: (T0, T1, T2, T3, T4)) -> Self
Converts to this type from the input type.
Source§impl<T0, T1, T2, T3, T4, T5> From<(T0, T1, T2, T3, T4, T5)> for MiraManageablewhere
T0: MiraField,
T1: MiraField,
T2: MiraField,
T3: MiraField,
T4: MiraField,
T5: MiraField,
impl<T0, T1, T2, T3, T4, T5> From<(T0, T1, T2, T3, T4, T5)> for MiraManageablewhere
T0: MiraField,
T1: MiraField,
T2: MiraField,
T3: MiraField,
T4: MiraField,
T5: MiraField,
Source§fn from(value: (T0, T1, T2, T3, T4, T5)) -> Self
fn from(value: (T0, T1, T2, T3, T4, T5)) -> Self
Converts to this type from the input type.
Source§impl<T0, T1, T2, T3, T4, T5, T6> From<(T0, T1, T2, T3, T4, T5, T6)> for MiraManageablewhere
T0: MiraField,
T1: MiraField,
T2: MiraField,
T3: MiraField,
T4: MiraField,
T5: MiraField,
T6: MiraField,
impl<T0, T1, T2, T3, T4, T5, T6> From<(T0, T1, T2, T3, T4, T5, T6)> for MiraManageablewhere
T0: MiraField,
T1: MiraField,
T2: MiraField,
T3: MiraField,
T4: MiraField,
T5: MiraField,
T6: MiraField,
Source§fn from(value: (T0, T1, T2, T3, T4, T5, T6)) -> Self
fn from(value: (T0, T1, T2, T3, T4, T5, T6)) -> Self
Converts to this type from the input type.
Source§impl<T0, T1, T2, T3, T4, T5, T6, T7> From<(T0, T1, T2, T3, T4, T5, T6, T7)> for MiraManageablewhere
T0: MiraField,
T1: MiraField,
T2: MiraField,
T3: MiraField,
T4: MiraField,
T5: MiraField,
T6: MiraField,
T7: MiraField,
impl<T0, T1, T2, T3, T4, T5, T6, T7> From<(T0, T1, T2, T3, T4, T5, T6, T7)> for MiraManageablewhere
T0: MiraField,
T1: MiraField,
T2: MiraField,
T3: MiraField,
T4: MiraField,
T5: MiraField,
T6: MiraField,
T7: MiraField,
Source§fn from(value: (T0, T1, T2, T3, T4, T5, T6, T7)) -> Self
fn from(value: (T0, T1, T2, T3, T4, T5, T6, T7)) -> Self
Converts to this type from the input type.
Source§impl<T0> From<(T0,)> for MiraManageablewhere
T0: MiraField,
impl<T0> From<(T0,)> for MiraManageablewhere
T0: MiraField,
Source§impl<T: MiraField, S: BuildHasher + 'static> From<HashMap<String, T, S>> for MiraManageable
impl<T: MiraField, S: BuildHasher + 'static> From<HashMap<String, T, S>> for MiraManageable
Source§impl From<MiraNativeFn> for MiraManageable
impl From<MiraNativeFn> for MiraManageable
Source§fn from(value: MiraNativeFn) -> Self
fn from(value: MiraNativeFn) -> Self
Converts to this type from the input type.
Source§impl From<String> for MiraManageable
impl From<String> for MiraManageable
Source§impl<T> From<T> for MiraManageable
impl<T> From<T> for MiraManageable
Source§impl<T: MiraField> From<Vec<T>> for MiraManageable
impl<T: MiraField> From<Vec<T>> for MiraManageable
Auto Trait Implementations§
impl !RefUnwindSafe for MiraManageable
impl !Send for MiraManageable
impl !Sync for MiraManageable
impl !UnwindSafe for MiraManageable
impl Freeze for MiraManageable
impl Unpin for MiraManageable
impl UnsafeUnpin for MiraManageable
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