[][src]Struct runestick::Tuple

#[repr(transparent)]pub struct Tuple { /* fields omitted */ }

Struct representing a dynamic anonymous object.

Implementations

impl Tuple[src]

pub fn into_inner(self) -> Box<[Value]>[src]

Convert into inner std boxed slice.

pub fn is_empty(&self) -> bool[src]

Returns true if the dynamic tuple contains no elements.

pub fn len(&self) -> usize[src]

Returns the number of elements in the dynamic tuple, also referred to as its 'length'.

pub fn get(&self, index: usize) -> Option<&Value>[src]

Get the value at the given index.

pub fn get_value<T>(&self, index: usize) -> Result<Option<T>, VmError> where
    T: FromValue
[src]

Get the given value at the given index.

pub fn get_mut(&mut self, index: usize) -> Option<&mut Value>[src]

Get the mutable value at the given index.

Trait Implementations

impl Clone for Tuple[src]

impl Debug for Tuple[src]

impl Deref for Tuple[src]

type Target = [Value]

The resulting type after dereferencing.

impl DerefMut for Tuple[src]

impl From<Box<[ConstValue]>> for Tuple[src]

impl From<Box<[Value]>> for Tuple[src]

impl From<Tuple> for Value[src]

impl From<Vec<Value>> for Tuple[src]

impl FromValue for Tuple[src]

impl ToValue for Tuple[src]

impl TypeOf for Tuple[src]

Auto Trait Implementations

impl !RefUnwindSafe for Tuple

impl !Send for Tuple

impl !Sync for Tuple

impl Unpin for Tuple

impl !UnwindSafe for Tuple

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.