pub struct Null;Expand description
A helper struct for pushing and reading special box.NULL values.
See https://www.tarantool.io/en/doc/latest/reference/reference_lua/box_null/
for more details about box.NULL.
Note that reading this type from lua will work with both regular nil and
box.NULL, as well as if there’s no value at all (e.g. no arguments to the
lua function). But when pushing this type onto the lua stack the box.NULL
value will always be pushed.
See also Nil.
Trait Implementations§
Source§impl<L> LuaRead<L> for Nullwhere
L: AsLua,
impl<L> LuaRead<L> for Nullwhere
L: AsLua,
Source§fn lua_read_at_position(lua: L, index: NonZeroI32) -> ReadResult<Self, L>
fn lua_read_at_position(lua: L, index: NonZeroI32) -> ReadResult<Self, L>
Reads the data from Lua at a given position.
fn lua_read_at_maybe_zero_position(lua: L, index: i32) -> ReadResult<Self, L>
fn n_values_expected() -> i32
Source§fn lua_read(lua: L) -> ReadResult<Self, L>
fn lua_read(lua: L) -> ReadResult<Self, L>
Reads the data from Lua.
Source§impl Ord for Null
impl Ord for Null
Source§impl PartialOrd for Null
impl PartialOrd for Null
Source§impl<L> Push<L> for Nullwhere
L: AsLua,
impl<L> Push<L> for Nullwhere
L: AsLua,
Source§impl<L> PushInto<L> for Nullwhere
L: AsLua,
impl<L> PushInto<L> for Nullwhere
L: AsLua,
impl Copy for Null
impl Eq for Null
impl<L> PushOne<L> for Nullwhere
L: AsLua,
impl<L> PushOneInto<L> for Nullwhere
L: AsLua,
impl StructuralPartialEq for Null
Auto Trait Implementations§
impl Freeze for Null
impl RefUnwindSafe for Null
impl Send for Null
impl Sync for Null
impl Unpin for Null
impl UnwindSafe for Null
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