pub struct ClosureView<'a>(/* private fields */);Expand description
What a host may read of a callback.
The body is not here and cannot be: the interpreter walks a tree and the
VM runs a lowered function, and calling one is
Reentry’s job because only the backend that made
a closure can run it.
Implementations§
Trait Implementations§
Source§impl<'a> Clone for ClosureView<'a>
impl<'a> Clone for ClosureView<'a>
Source§fn clone(&self) -> ClosureView<'a>
fn clone(&self) -> ClosureView<'a>
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl<'a> Copy for ClosureView<'a>
Auto Trait Implementations§
impl<'a> !RefUnwindSafe for ClosureView<'a>
impl<'a> !Send for ClosureView<'a>
impl<'a> !Sync for ClosureView<'a>
impl<'a> !UnwindSafe for ClosureView<'a>
impl<'a> Freeze for ClosureView<'a>
impl<'a> Unpin for ClosureView<'a>
impl<'a> UnsafeUnpin for ClosureView<'a>
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