pub enum MetaMethod {
Show 24 variants
Call,
Iter,
GetAttr,
GetItem,
SetAttr,
SetItem,
Neg,
Add,
Sub,
Mul,
Div,
Mod,
Eq,
Ne,
Gt,
Ge,
Lt,
Le,
Len,
Bool,
Int,
Float,
Str,
Repr,
}Variants§
Call
Iter
GetAttr
GetItem
SetAttr
SetItem
Neg
Add
Sub
Mul
Div
Mod
Eq
Ne
Gt
Ge
Lt
Le
Len
Bool
Int
Float
Str
Repr
Implementations§
Trait Implementations§
Source§impl Clone for MetaMethod
impl Clone for MetaMethod
Source§fn clone(&self) -> MetaMethod
fn clone(&self) -> MetaMethod
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Collect for MetaMethodwhere
Self: 'static,
impl Collect for MetaMethodwhere
Self: 'static,
Source§fn needs_trace() -> bool
fn needs_trace() -> bool
As an optimization, if this type can never hold a
Gc pointer and trace is unnecessary
to call, you may implement this method and return false. The default implementation returns
true, signaling that Collect::trace must be called.Source§fn trace(&self, _cc: &Collection)
fn trace(&self, _cc: &Collection)
Must call
Collect::trace on all held Gc pointers. If this type holds inner types that
implement Collect, a valid implementation would simply call Collect::trace on all the
held values to ensure this.Source§impl Debug for MetaMethod
impl Debug for MetaMethod
Source§impl Display for MetaMethod
impl Display for MetaMethod
Source§impl Hash for MetaMethod
impl Hash for MetaMethod
Source§impl<'gc> IntoValue<'gc> for MetaMethod
impl<'gc> IntoValue<'gc> for MetaMethod
fn into_value(self, ctx: Context<'gc>) -> Value<'gc>
Source§impl PartialEq for MetaMethod
impl PartialEq for MetaMethod
impl Copy for MetaMethod
impl Eq for MetaMethod
impl StructuralPartialEq for MetaMethod
Auto Trait Implementations§
impl Freeze for MetaMethod
impl RefUnwindSafe for MetaMethod
impl Send for MetaMethod
impl Sync for MetaMethod
impl Unpin for MetaMethod
impl UnwindSafe for MetaMethod
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.