[−][src]Trait rudeboy::RudeboyMetaMethods
Provides methods for registering each supported metamethod. The
generate_metamethods
method will call all of them. Generated by the
metamethods
attribute macro.
Provided methods
fn generate_index<'lua, M: UserDataMethods<'lua, Self>>(_methods: &mut M)
The index metamethod for accessing fields using the dot syntax:
instance.field
fn generate_eq<'lua, M: UserDataMethods<'lua, Self>>(_methods: &mut M)
The equality metamethod for the binary ==
operator
fn generate_add<'lua, M: UserDataMethods<'lua, Self>>(_methods: &mut M)
The addition metamethod for the binary +
operator
fn generate_sub<'lua, M: UserDataMethods<'lua, Self>>(_methods: &mut M)
The subtraction metamethod for the binary -
operator
fn generate_mul<'lua, M: UserDataMethods<'lua, Self>>(_methods: &mut M)
The multiplication metamethod for the binary *
operator
fn generate_div<'lua, M: UserDataMethods<'lua, Self>>(_methods: &mut M)
The division metamethod for the binary /
operator
fn generate_mod<'lua, M: UserDataMethods<'lua, Self>>(_methods: &mut M)
The modulo metamethod for the binary %
operator
fn generate_unm<'lua, M: UserDataMethods<'lua, Self>>(_methods: &mut M)
The unary minus metamethod for the unary -
operator
fn generate_band<'lua, M: UserDataMethods<'lua, Self>>(_methods: &mut M)
The bitwise and metamethod for the binary &
operator
fn generate_bor<'lua, M: UserDataMethods<'lua, Self>>(_methods: &mut M)
The bitwise or metamethod for the binary |
operator
fn generate_bxor<'lua, M: UserDataMethods<'lua, Self>>(_methods: &mut M)
The bitwise xor metamethod for the binary ~
operator
fn generate_bnot<'lua, M: UserDataMethods<'lua, Self>>(_methods: &mut M)
The bitwise not metamethod for the unary ~
operator
fn generate_shl<'lua, M: UserDataMethods<'lua, Self>>(_methods: &mut M)
The shift left metamethod for the binary <<
operator
fn generate_shr<'lua, M: UserDataMethods<'lua, Self>>(_methods: &mut M)
The shift right metamethod for the binary >>
operator
fn generate_lt<'lua, M: UserDataMethods<'lua, Self>>(_methods: &mut M)
The less than metamethod for the binary <
operator
fn generate_le<'lua, M: UserDataMethods<'lua, Self>>(_methods: &mut M)
The less-than-or-equal metamethod for the binary <=
operator
fn generate_metamethods<'lua, M: UserDataMethods<'lua, Self>>(methods: &mut M)
Calls every individual generate_*
method in this trait