Struct sandkiste_lua::v5_3::LuaReference
source · pub struct LuaReference<'a, 'b>(_);
Expand description
Reference to value inside Lua machine
This type reflects an opaque reference to a value inside the Lua machine.
A LuaReference
may be obtained by calling MaybeOpaque::try_as_opaque
on a LuaDatum
. A LuaReference
may be cloned, compared, or hashed, but
provides no other means of accessing the underlying value.
Lifetimes
Lifetime argument 'a
corresponds to the lifetime argument 'a
of
LuaMachine
. It is a lower bound for closures passed to the Lua machine.
Lifetime argument 'b
corresponds to the lifetime of the shared reference
to the LuaMachine
being worked with.
Trait Implementations§
source§impl<'a, 'b> Clone for LuaReference<'a, 'b>
impl<'a, 'b> Clone for LuaReference<'a, 'b>
source§fn clone(&self) -> LuaReference<'a, 'b>
fn clone(&self) -> LuaReference<'a, 'b>
Returns a copy 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<'a, 'b> Debug for LuaReference<'a, 'b>
impl<'a, 'b> Debug for LuaReference<'a, 'b>
source§impl<'a, 'b> Hash for LuaReference<'a, 'b>
impl<'a, 'b> Hash for LuaReference<'a, 'b>
source§impl<'a, 'b> PartialEq<LuaReference<'a, 'b>> for LuaReference<'a, 'b>
impl<'a, 'b> PartialEq<LuaReference<'a, 'b>> for LuaReference<'a, 'b>
source§fn eq(&self, other: &LuaReference<'a, 'b>) -> bool
fn eq(&self, other: &LuaReference<'a, 'b>) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.