Struct taffy::tree::cache::CacheEntry
source · pub(crate) struct CacheEntry<T> {
known_dimensions: Size<Option<f32>>,
available_space: Size<AvailableSpace>,
content: T,
}
Expand description
Cached intermediate layout results
Fields§
§known_dimensions: Size<Option<f32>>
The initial cached size of the node itself
available_space: Size<AvailableSpace>
The initial cached size of the parent’s node
content: T
The cached size and baselines of the item
Trait Implementations§
source§impl<T: Clone> Clone for CacheEntry<T>
impl<T: Clone> Clone for CacheEntry<T>
source§fn clone(&self) -> CacheEntry<T>
fn clone(&self) -> CacheEntry<T>
Returns a copy 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<T: Debug> Debug for CacheEntry<T>
impl<T: Debug> Debug for CacheEntry<T>
source§impl<T: PartialEq> PartialEq for CacheEntry<T>
impl<T: PartialEq> PartialEq for CacheEntry<T>
source§impl<T> Serialize for CacheEntry<T>where
T: Serialize,
impl<T> Serialize for CacheEntry<T>where
T: Serialize,
impl<T: Copy> Copy for CacheEntry<T>
impl<T> StructuralPartialEq for CacheEntry<T>
Auto Trait Implementations§
impl<T> Freeze for CacheEntry<T>where
T: Freeze,
impl<T> RefUnwindSafe for CacheEntry<T>where
T: RefUnwindSafe,
impl<T> Send for CacheEntry<T>where
T: Send,
impl<T> Sync for CacheEntry<T>where
T: Sync,
impl<T> Unpin for CacheEntry<T>where
T: Unpin,
impl<T> UnwindSafe for CacheEntry<T>where
T: UnwindSafe,
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
source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)