pub struct Nil;Expand description
A helper struct for pushing and reading simple lua nil values.
Reading from lua with return Ok(Nil) if there is a value on the stack and
value is of type nil, or if there is no value on the stack (e.g. no arguments
passed to lua function).
See also Null.
Trait Implementations§
Source§impl<'de> Deserialize<'de> for Nil
impl<'de> Deserialize<'de> for Nil
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl<L> LuaRead<L> for Nilwhere
L: AsLua,
impl<L> LuaRead<L> for Nilwhere
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 Nil
impl Ord for Nil
Source§impl PartialOrd for Nil
impl PartialOrd for Nil
Source§impl<L> Push<L> for Nilwhere
L: AsLua,
impl<L> Push<L> for Nilwhere
L: AsLua,
Source§impl<L> PushInto<L> for Nilwhere
L: AsLua,
impl<L> PushInto<L> for Nilwhere
L: AsLua,
impl Copy for Nil
impl Eq for Nil
impl<L> PushOne<L> for Nilwhere
L: AsLua,
impl<L> PushOneInto<L> for Nilwhere
L: AsLua,
impl StructuralPartialEq for Nil
Auto Trait Implementations§
impl Freeze for Nil
impl RefUnwindSafe for Nil
impl Send for Nil
impl Sync for Nil
impl Unpin for Nil
impl UnwindSafe for Nil
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