pub enum MetaResult<'gc, const N: usize> {
Value(Value<'gc>),
Call(Function<'gc>, [Value<'gc>; N]),
}Variants§
Trait Implementations§
Source§impl<'gc, const N: usize> Clone for MetaResult<'gc, N>
impl<'gc, const N: usize> Clone for MetaResult<'gc, N>
Source§fn clone(&self) -> MetaResult<'gc, N>
fn clone(&self) -> MetaResult<'gc, N>
Returns a duplicate 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<'gc, const N: usize> Collect for MetaResult<'gc, N>
impl<'gc, const N: usize> Collect for MetaResult<'gc, N>
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, const N: usize> Debug for MetaResult<'gc, N>
impl<'gc, const N: usize> Debug for MetaResult<'gc, N>
Source§impl<'gc, const N: usize> From<MetaResult<'gc, N>> for CallbackReturn<'gc>
impl<'gc, const N: usize> From<MetaResult<'gc, N>> for CallbackReturn<'gc>
Source§fn from(value: MetaResult<'gc, N>) -> Self
fn from(value: MetaResult<'gc, N>) -> Self
Converts to this type from the input type.
impl<'gc, const N: usize> Copy for MetaResult<'gc, N>
Auto Trait Implementations§
impl<'gc, const N: usize> Freeze for MetaResult<'gc, N>
impl<'gc, const N: usize> !RefUnwindSafe for MetaResult<'gc, N>
impl<'gc, const N: usize> !Send for MetaResult<'gc, N>
impl<'gc, const N: usize> !Sync for MetaResult<'gc, N>
impl<'gc, const N: usize> Unpin for MetaResult<'gc, N>
impl<'gc, const N: usize> !UnwindSafe for MetaResult<'gc, N>
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