pub struct FlatClosure {
pub fn_index: u32,
pub arity: u32,
pub env: Vec<u64>,
}Expand description
A flat, heap-allocated closure that can be serialized (no dyn fn ptrs).
Fields§
§fn_index: u32Function index (into a global function table).
arity: u32Arity.
env: Vec<u64>Environment values (limited to simple types here: u64).
Implementations§
Source§impl FlatClosure
impl FlatClosure
Sourcepub fn deserialize(data: &[u8]) -> Option<Self>
pub fn deserialize(data: &[u8]) -> Option<Self>
Deserialize from bytes.
Trait Implementations§
Source§impl Clone for FlatClosure
impl Clone for FlatClosure
Source§fn clone(&self) -> FlatClosure
fn clone(&self) -> FlatClosure
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 Debug for FlatClosure
impl Debug for FlatClosure
Auto Trait Implementations§
impl Freeze for FlatClosure
impl RefUnwindSafe for FlatClosure
impl Send for FlatClosure
impl Sync for FlatClosure
impl Unpin for FlatClosure
impl UnsafeUnpin for FlatClosure
impl UnwindSafe for FlatClosure
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