pub struct Cache { /* private fields */ }Expand description
Per-container retained state for resolve.
resolve keeps per-child bookkeeping across its multiple passes. To
avoid allocating that bookkeeping on every layout call, each flex
container stores a Cache in its widget::Tree state, and
resolve reuses the buffer stored there between layout calls.
The type is opaque: its contents are managed entirely by resolve.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Cache
impl RefUnwindSafe for Cache
impl Send for Cache
impl Sync for Cache
impl Unpin for Cache
impl UnsafeUnpin for Cache
impl UnwindSafe for Cache
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