pub enum Tuple {
Empty,
NonEmpty(Gc<[Variant]>),
}
Variants§
Implementations§
Trait Implementations§
Source§impl MetaObject for Tuple
impl MetaObject for Tuple
fn type_tag(&self) -> Type
fn len(&self) -> Option<ExecResult<usize>>
fn iter_init(&self) -> Option<ExecResult<IterState>>
fn cmp_eq(&self, other: &Variant) -> Option<ExecResult<bool>>
fn cmp_lt(&self, other: &Variant) -> Option<ExecResult<bool>>
fn cmp_le(&self, other: &Variant) -> Option<ExecResult<bool>>
fn fmt_repr(&self) -> ExecResult<StringValue>
fn type_name(&self) -> ExecResult<StringValue>
fn as_bool(&self) -> ExecResult<bool>
fn as_bits(&self) -> Option<ExecResult<IntType>>
fn as_int(&self) -> Option<ExecResult<IntType>>
fn as_float(&self) -> Option<ExecResult<FloatType>>
fn iter_next(&self, state: &Variant) -> Option<ExecResult<Variant>>
fn iter_get(&self, state: &Variant) -> Option<ExecResult<Variant>>
fn invoke(&self, args: &[Variant]) -> Option<ExecResult<Call>>
fn op_neg(&self) -> Option<ExecResult<Variant>>
fn op_pos(&self) -> Option<ExecResult<Variant>>
fn op_inv(&self) -> Option<ExecResult<Variant>>
fn op_mul(&self, rhs: &Variant) -> Option<ExecResult<Variant>>
fn op_rmul(&self, lhs: &Variant) -> Option<ExecResult<Variant>>
fn op_div(&self, rhs: &Variant) -> Option<ExecResult<Variant>>
fn op_rdiv(&self, lhs: &Variant) -> Option<ExecResult<Variant>>
fn op_mod(&self, rhs: &Variant) -> Option<ExecResult<Variant>>
fn op_rmod(&self, lhs: &Variant) -> Option<ExecResult<Variant>>
fn op_add(&self, rhs: &Variant) -> Option<ExecResult<Variant>>
fn op_radd(&self, lhs: &Variant) -> Option<ExecResult<Variant>>
fn op_sub(&self, rhs: &Variant) -> Option<ExecResult<Variant>>
fn op_rsub(&self, lhs: &Variant) -> Option<ExecResult<Variant>>
fn op_and(&self, rhs: &Variant) -> Option<ExecResult<Variant>>
fn op_rand(&self, lhs: &Variant) -> Option<ExecResult<Variant>>
fn op_xor(&self, rhs: &Variant) -> Option<ExecResult<Variant>>
fn op_rxor(&self, lhs: &Variant) -> Option<ExecResult<Variant>>
fn op_or(&self, rhs: &Variant) -> Option<ExecResult<Variant>>
fn op_ror(&self, lhs: &Variant) -> Option<ExecResult<Variant>>
fn op_shl(&self, rhs: &Variant) -> Option<ExecResult<Variant>>
fn op_rshl(&self, lhs: &Variant) -> Option<ExecResult<Variant>>
fn op_shr(&self, rhs: &Variant) -> Option<ExecResult<Variant>>
fn op_rshr(&self, lhs: &Variant) -> Option<ExecResult<Variant>>
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> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more