Trait MetaObject
Source pub trait MetaObject {
Show 38 methods
// Required methods
fn type_tag(&self) -> Type;
fn fmt_repr(&self) -> ExecResult<StringValue>;
// Provided methods
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_init(&self) -> Option<ExecResult<IterState>> { ... }
fn iter_next(&self, state: &Variant) -> Option<ExecResult<Variant>> { ... }
fn iter_get(&self, state: &Variant) -> Option<ExecResult<Variant>> { ... }
fn len(&self) -> Option<ExecResult<usize>> { ... }
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>> { ... }
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>> { ... }
}