Enum Tuple

Source
pub enum Tuple {
    Empty,
    NonEmpty(Gc<[Variant]>),
}

Variants§

§

Empty

§

NonEmpty(Gc<[Variant]>)

Implementations§

Source§

impl Tuple

Source

pub fn trace(&self)

Source

pub fn len(&self) -> usize

Source

pub fn is_empty(&self) -> bool

Source

pub fn items(&self) -> &[Variant]

Trait Implementations§

Source§

impl AsRef<[Variant]> for Tuple

Source§

fn as_ref(&self) -> &[Variant]

Converts this type into a shared reference of the (usually inferred) input type.
Source§

impl Clone for Tuple

Source§

fn clone(&self) -> Tuple

Returns a duplicate of the value. Read more
1.0.0 · Source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
Source§

impl Debug for Tuple

Source§

fn fmt(&self, fmt: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
Source§

impl Default for Tuple

Source§

fn default() -> Self

Returns the “default value” for a type. Read more
Source§

impl From<Box<[Variant]>> for Tuple

Source§

fn from(items: Box<[Variant]>) -> Self

Converts to this type from the input type.
Source§

impl MetaObject for Tuple

Source§

fn type_tag(&self) -> Type

Source§

fn len(&self) -> Option<ExecResult<usize>>

Source§

fn iter_init(&self) -> Option<ExecResult<IterState>>

Source§

fn cmp_eq(&self, other: &Variant) -> Option<ExecResult<bool>>

Source§

fn cmp_lt(&self, other: &Variant) -> Option<ExecResult<bool>>

Source§

fn cmp_le(&self, other: &Variant) -> Option<ExecResult<bool>>

Source§

fn fmt_repr(&self) -> ExecResult<StringValue>

Source§

fn type_name(&self) -> ExecResult<StringValue>

Source§

fn as_bool(&self) -> ExecResult<bool>

Source§

fn as_bits(&self) -> Option<ExecResult<IntType>>

Source§

fn as_int(&self) -> Option<ExecResult<IntType>>

Source§

fn as_float(&self) -> Option<ExecResult<FloatType>>

Source§

fn iter_next(&self, state: &Variant) -> Option<ExecResult<Variant>>

Source§

fn iter_get(&self, state: &Variant) -> Option<ExecResult<Variant>>

Source§

fn invoke(&self, args: &[Variant]) -> Option<ExecResult<Call>>

Source§

fn op_neg(&self) -> Option<ExecResult<Variant>>

Source§

fn op_pos(&self) -> Option<ExecResult<Variant>>

Source§

fn op_inv(&self) -> Option<ExecResult<Variant>>

Source§

fn op_mul(&self, rhs: &Variant) -> Option<ExecResult<Variant>>

Source§

fn op_rmul(&self, lhs: &Variant) -> Option<ExecResult<Variant>>

Source§

fn op_div(&self, rhs: &Variant) -> Option<ExecResult<Variant>>

Source§

fn op_rdiv(&self, lhs: &Variant) -> Option<ExecResult<Variant>>

Source§

fn op_mod(&self, rhs: &Variant) -> Option<ExecResult<Variant>>

Source§

fn op_rmod(&self, lhs: &Variant) -> Option<ExecResult<Variant>>

Source§

fn op_add(&self, rhs: &Variant) -> Option<ExecResult<Variant>>

Source§

fn op_radd(&self, lhs: &Variant) -> Option<ExecResult<Variant>>

Source§

fn op_sub(&self, rhs: &Variant) -> Option<ExecResult<Variant>>

Source§

fn op_rsub(&self, lhs: &Variant) -> Option<ExecResult<Variant>>

Source§

fn op_and(&self, rhs: &Variant) -> Option<ExecResult<Variant>>

Source§

fn op_rand(&self, lhs: &Variant) -> Option<ExecResult<Variant>>

Source§

fn op_xor(&self, rhs: &Variant) -> Option<ExecResult<Variant>>

Source§

fn op_rxor(&self, lhs: &Variant) -> Option<ExecResult<Variant>>

Source§

fn op_or(&self, rhs: &Variant) -> Option<ExecResult<Variant>>

Source§

fn op_ror(&self, lhs: &Variant) -> Option<ExecResult<Variant>>

Source§

fn op_shl(&self, rhs: &Variant) -> Option<ExecResult<Variant>>

Source§

fn op_rshl(&self, lhs: &Variant) -> Option<ExecResult<Variant>>

Source§

fn op_shr(&self, rhs: &Variant) -> Option<ExecResult<Variant>>

Source§

fn op_rshr(&self, lhs: &Variant) -> Option<ExecResult<Variant>>

Source§

impl Copy for Tuple

Auto Trait Implementations§

§

impl Freeze for Tuple

§

impl !RefUnwindSafe for Tuple

§

impl !Send for Tuple

§

impl !Sync for Tuple

§

impl Unpin for Tuple

§

impl !UnwindSafe for Tuple

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> CloneToUninit for T
where T: Clone,

Source§

unsafe fn clone_to_uninit(&self, dest: *mut u8)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dest. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T> ToOwned for T
where T: Clone,

Source§

type Owned = T

The resulting type after obtaining ownership.
Source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
Source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

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

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.