[][src]Enum actix_lua::dev::rlua::prelude::LuaMetaMethod

pub enum LuaMetaMethod {
    Add,
    Sub,
    Mul,
    Div,
    Mod,
    Pow,
    Unm,
    IDiv,
    BAnd,
    BOr,
    BXor,
    BNot,
    Shl,
    Shr,
    Concat,
    Len,
    Eq,
    Lt,
    Le,
    Index,
    NewIndex,
    Call,
    ToString,
}

Kinds of metamethods that can be overridden.

Currently, this mechanism does not allow overriding the __gc metamethod, since there is generally no need to do so: UserData implementors can instead just implement Drop.

Variants

Add

The + operator.

Sub

The - operator.

Mul

The * operator.

Div

The / operator.

Mod

The % operator.

Pow

The ^ operator.

Unm

The unary minus (-) operator.

IDiv

The floor division (//) operator.

BAnd

The bitwise AND (&) operator.

BOr

The bitwise OR (|) operator.

BXor

The bitwise XOR (binary ~) operator.

BNot

The bitwise NOT (unary ~) operator.

Shl

The bitwise left shift (<<) operator.

Shr

The bitwise right shift (>>) operator.

Concat

The string concatenation operator ...

Len

The length operator #.

Eq

The == operator.

Lt

The < operator.

Le

The <= operator.

Index

Index access obj[key].

NewIndex

Index write access obj[key] = value.

Call

The call "operator" obj(arg1, args2, ...).

ToString

The __tostring metamethod.

This is not an operator, but will be called by methods such as tostring and print.

Trait Implementations

impl Hash for MetaMethod
[src]

fn hash_slice<H>(data: &[Self], state: &mut H) where
    H: Hasher
1.3.0
[src]

Feeds a slice of this type into the given [Hasher]. Read more

impl Copy for MetaMethod
[src]

impl Debug for MetaMethod
[src]

impl Clone for MetaMethod
[src]

fn clone_from(&mut self, source: &Self)
1.0.0
[src]

Performs copy-assignment from source. Read more

impl Eq for MetaMethod
[src]

impl PartialEq<MetaMethod> for MetaMethod
[src]

#[must_use]
fn ne(&self, other: &Rhs) -> bool
1.0.0
[src]

This method tests for !=.

Auto Trait Implementations

impl Send for MetaMethod

impl Sync for MetaMethod

Blanket Implementations

impl<T> From for T
[src]

impl<T, U> Into for T where
    U: From<T>, 
[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

impl<T, U> TryFrom for T where
    T: From<U>, 
[src]

type Error = !

🔬 This is a nightly-only experimental API. (try_from)

The type returned in the event of a conversion error.

impl<T> Borrow for T where
    T: ?Sized
[src]

impl<T> BorrowMut for T where
    T: ?Sized
[src]

impl<T, U> TryInto for T where
    U: TryFrom<T>, 
[src]

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

🔬 This is a nightly-only experimental API. (try_from)

The type returned in the event of a conversion error.

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Erased for T