pub struct LuaError<'gc>(pub Value<'gc>);Tuple Fields§
§0: Value<'gc>Implementations§
Trait Implementations§
source§impl<'gc> Collect for LuaError<'gc>
impl<'gc> Collect for LuaError<'gc>
source§fn needs_trace() -> bool
fn needs_trace() -> bool
As an optimization, if this type can never hold a
Gc pointer and trace is unnecessary
to call, you may implement this method and return false. The default implementation returns
true, signaling that Collect::trace must be called.source§fn trace(&self, cc: &Collection)
fn trace(&self, cc: &Collection)
Must call
Collect::trace on all held Gc pointers. If this type holds inner types that
implement Collect, a valid implementation would simply call Collect::trace on all the
held values to ensure this.source§impl<'gc> From<LuaError<'gc>> for StaticLuaError
impl<'gc> From<LuaError<'gc>> for StaticLuaError
impl<'gc> Copy for LuaError<'gc>
Auto Trait Implementations§
impl<'gc> !RefUnwindSafe for LuaError<'gc>
impl<'gc> !Send for LuaError<'gc>
impl<'gc> !Sync for LuaError<'gc>
impl<'gc> Unpin for LuaError<'gc>
impl<'gc> !UnwindSafe for LuaError<'gc>
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