pub struct ClosureLayout {
pub fn_ptr_offset: usize,
pub env_offset: usize,
pub env_size: usize,
pub arity: usize,
pub num_captured: usize,
pub object_layout: ObjectLayout,
}Expand description
Detailed layout information for a closure.
Fields§
§fn_ptr_offset: usizeByte offset of the function pointer from closure start.
env_offset: usizeByte offset of the captured environment from closure start.
env_size: usizeTotal size of the captured environment in bytes.
arity: usizeNumber of parameters the function takes (total arity).
num_captured: usizeNumber of captured variables.
object_layout: ObjectLayoutThe overall object layout.
Implementations§
Trait Implementations§
Source§impl Clone for ClosureLayout
impl Clone for ClosureLayout
Source§fn clone(&self) -> ClosureLayout
fn clone(&self) -> ClosureLayout
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 ClosureLayout
impl Debug for ClosureLayout
Source§impl Display for ClosureLayout
impl Display for ClosureLayout
Source§impl PartialEq for ClosureLayout
impl PartialEq for ClosureLayout
impl Eq for ClosureLayout
impl StructuralPartialEq for ClosureLayout
Auto Trait Implementations§
impl Freeze for ClosureLayout
impl RefUnwindSafe for ClosureLayout
impl Send for ClosureLayout
impl Sync for ClosureLayout
impl Unpin for ClosureLayout
impl UnsafeUnpin for ClosureLayout
impl UnwindSafe for ClosureLayout
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