pub struct TaitankLayoutCache { /* private fields */ }Implementations§
Source§impl TaitankLayoutCache
impl TaitankLayoutCache
pub fn new() -> Self
pub fn cache_result( &mut self, available_size: TaitankSize, result_size: TaitankSize, measure_mode: TaitankSizeMode, layout_action: FlexLayoutAction, )
pub fn get_cached_measure_result( &self, available_size: TaitankSize, measure_mode: TaitankSizeMode, layout_action: FlexLayoutAction, is_measure_node: bool, ) -> Option<&MeasureResult>
pub fn get_cached_layout(&self) -> Option<&MeasureResult>
pub fn clear_cache(&mut self)
Trait Implementations§
Source§impl Debug for TaitankLayoutCache
impl Debug for TaitankLayoutCache
Auto Trait Implementations§
impl Freeze for TaitankLayoutCache
impl RefUnwindSafe for TaitankLayoutCache
impl Send for TaitankLayoutCache
impl Sync for TaitankLayoutCache
impl Unpin for TaitankLayoutCache
impl UnwindSafe for TaitankLayoutCache
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