[−][src]Struct runestick::Tuple
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]
T: FromValue,
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]
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]
fn from_value(value: Value) -> Result<Self, VmError>
[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]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
fn to_owned(&self) -> T
[src]
fn clone_into(&self, target: &mut T)
[src]
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,