pub struct Native(/* private fields */);Expand description
A value the evaluator owns, carried opaquely.
This crate cannot depend on the evaluator, so a function value or any
other evaluator-made value is carried as a Carry and recovered by the
evaluator with Native::downcast. Nothing here compares, orders or
prints one.
The values a carried value holds, such as what a closure captured, are
among the native value’s parts (Value::parts), and dropping it hands
them to dismantle like the parts of any other aggregate: a chain of
closures each capturing the last drops without deep recursion.
Implementations§
Trait Implementations§
Auto Trait Implementations§
impl !RefUnwindSafe for Native
impl !UnwindSafe for Native
impl Forget for Native
impl Freeze for Native
impl Move for Native
impl Send for Native
impl Sync for Native
impl Unpin for Native
impl UnsafeUnpin for Nativewhere
*const ArcInner<dyn Carry> is !null: UnsafeUnpin,
PhantomData<ArcInner<dyn Carry>>: UnsafeUnpin,
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