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 held as dyn Any and recovered by the
evaluator with Native::downcast. Nothing here compares, orders or
prints one.
One that holds values of its own, such as a closure holding what it
captured, is made with Native::holding, so that dropping it hands those
values 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 Freeze for Native
impl Send for Native
impl Sync for Native
impl Unpin for Native
impl UnsafeUnpin for Native
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