pub struct LayoutStats { /* private fields */ }Expand description
Telemetry counters recorded per layout pass.
Implementations§
Source§impl LayoutStats
impl LayoutStats
pub fn get_nodes_computed(&self) -> usize
pub fn get_mut_nodes_computed(&mut self) -> &mut usize
pub fn set_nodes_computed(&mut self, val: usize) -> &mut Self
pub fn get_subtrees_skipped(&self) -> usize
pub fn get_mut_subtrees_skipped(&mut self) -> &mut usize
pub fn set_subtrees_skipped(&mut self, val: usize) -> &mut Self
Trait Implementations§
Source§impl Clone for LayoutStats
impl Clone for LayoutStats
impl Copy for LayoutStats
Source§impl Debug for LayoutStats
impl Debug for LayoutStats
Source§impl Default for LayoutStats
impl Default for LayoutStats
impl Eq for LayoutStats
Source§impl Hash for LayoutStats
impl Hash for LayoutStats
Source§impl Ord for LayoutStats
impl Ord for LayoutStats
1.21.0 (const: unstable) · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
1.21.0 (const: unstable) · Source§fn min(self, other: Self) -> Selfwhere
Self: Sized,
fn min(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the minimum of two values. Read more
Source§impl PartialEq for LayoutStats
impl PartialEq for LayoutStats
Source§impl PartialOrd for LayoutStats
impl PartialOrd for LayoutStats
impl StructuralPartialEq for LayoutStats
Auto Trait Implementations§
impl Forget for LayoutStats
impl Freeze for LayoutStats
impl Move for LayoutStats
impl RefUnwindSafe for LayoutStats
impl Send for LayoutStats
impl Sync for LayoutStats
impl Unpin for LayoutStats
impl UnsafeUnpin for LayoutStats
impl UnwindSafe for LayoutStats
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