Type Alias Array

Source
pub type Array<T> = Vec<T>;
Expand description

The type of an array.

Aliased Type§

pub struct Array<T> { /* private fields */ }

Trait Implementations§

Source§

impl<T> FromValue for Array<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 Array<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 Array<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 Array<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 Array<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 Array<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