pub struct LayoutCache { /* private fields */ }Expand description
A persistent layout cache that survives across multiple compilation units.
Implementations§
Source§impl LayoutCache
impl LayoutCache
Sourcepub fn get_ctor(
&mut self,
ctor_name: &str,
ctor_tag: u32,
num_obj: usize,
scalar_sz: usize,
) -> &ObjectLayout
pub fn get_ctor( &mut self, ctor_name: &str, ctor_tag: u32, num_obj: usize, scalar_sz: usize, ) -> &ObjectLayout
Get or compute a constructor layout.
Sourcepub fn get_closure(
&mut self,
arity: usize,
num_captured: usize,
) -> &ClosureLayout
pub fn get_closure( &mut self, arity: usize, num_captured: usize, ) -> &ClosureLayout
Get or compute a closure layout.
Sourcepub fn ctor_count(&self) -> usize
pub fn ctor_count(&self) -> usize
Number of cached constructor layouts.
Sourcepub fn closure_count(&self) -> usize
pub fn closure_count(&self) -> usize
Number of cached closure layouts.
Trait Implementations§
Source§impl Clone for LayoutCache
impl Clone for LayoutCache
Source§fn clone(&self) -> LayoutCache
fn clone(&self) -> LayoutCache
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 LayoutCache
impl Debug for LayoutCache
Source§impl Default for LayoutCache
impl Default for LayoutCache
Source§fn default() -> LayoutCache
fn default() -> LayoutCache
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for LayoutCache
impl RefUnwindSafe for LayoutCache
impl Send for LayoutCache
impl Sync for LayoutCache
impl Unpin for LayoutCache
impl UnsafeUnpin for LayoutCache
impl UnwindSafe for LayoutCache
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