pub type Object<T> = HashMap<String, T>;Expand description
The type of an object.
Aliased Type§
pub struct Object<T> { /* private fields */ }Trait Implementations§
Source§impl<T> FromValue for Object<T>where
T: FromValue,
impl<T> FromValue for Object<T>where
T: FromValue,
Source§fn from_value(value: ValuePtr, vm: &mut Vm) -> Result<Self, StackError>
fn from_value(value: ValuePtr, vm: &mut Vm) -> Result<Self, StackError>
Try to convert to the given type, from the given value.
Source§impl<'a, T> ReflectValueType for &'a Object<T>
impl<'a, T> ReflectValueType for &'a Object<T>
Source§fn value_type() -> ValueType
fn value_type() -> ValueType
Convert into a value type.
Source§fn value_type_info() -> ValueTypeInfo
fn value_type_info() -> ValueTypeInfo
Access diagnostical information on the value type.
Source§impl<'a, T> ReflectValueType for &'a mut Object<T>
impl<'a, T> ReflectValueType for &'a mut Object<T>
Source§fn value_type() -> ValueType
fn value_type() -> ValueType
Convert into a value type.
Source§fn value_type_info() -> ValueTypeInfo
fn value_type_info() -> ValueTypeInfo
Access diagnostical information on the value type.
Source§impl<T> ReflectValueType for Object<T>
impl<T> ReflectValueType for Object<T>
Source§fn value_type() -> ValueType
fn value_type() -> ValueType
Convert into a value type.
Source§fn value_type_info() -> ValueTypeInfo
fn value_type_info() -> ValueTypeInfo
Access diagnostical information on the value type.
Source§impl<'a> UnsafeFromValue for &'a Object<ValuePtr>
impl<'a> UnsafeFromValue for &'a Object<ValuePtr>
Source§type Guard = RawRefGuard
type Guard = RawRefGuard
The raw guard returned. Read more
Source§unsafe fn unsafe_from_value(
value: ValuePtr,
vm: &mut Vm,
) -> Result<(Self, Self::Guard), StackError>
unsafe fn unsafe_from_value( value: ValuePtr, vm: &mut Vm, ) -> Result<(Self, Self::Guard), StackError>
Convert the given reference using unsafe assumptions to a value. Read more