Type Alias Object

Source
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,

Source§

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>

Source§

fn value_type() -> ValueType

Convert into a value type.
Source§

fn value_type_info() -> ValueTypeInfo

Access diagnostical information on the value type.
Source§

impl<'a, T> ReflectValueType for &'a mut Object<T>

Source§

fn value_type() -> ValueType

Convert into a value type.
Source§

fn value_type_info() -> ValueTypeInfo

Access diagnostical information on the value type.
Source§

impl<T> ReflectValueType for Object<T>

Source§

fn value_type() -> ValueType

Convert into a value type.
Source§

fn value_type_info() -> ValueTypeInfo

Access diagnostical information on the value type.
Source§

impl<T> ToValue for Object<T>
where T: ToValue,

Source§

fn to_value(self, vm: &mut Vm) -> Result<ValuePtr, StackError>

Convert into a value.
Source§

impl<'a> UnsafeFromValue for &'a Object<ValuePtr>

Source§

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>

Convert the given reference using unsafe assumptions to a value. Read more