struct CacheKey {
kd_available_space: u64,
parent_size: u64,
}Expand description
Space-optimised cache key that packs bits into as small a size as possible
Fields§
§kd_available_space: u64The initial cached size of the node itself
parent_size: u64The initial cached size of the parent’s node
Implementations§
Source§impl CacheKey
impl CacheKey
Sourcefn parent_size(&self) -> u64
fn parent_size(&self) -> u64
Return the parent size with the extra bits that encode the requested axis masked out
Sourcefn x_axis_parent_size(&self) -> u64
fn x_axis_parent_size(&self) -> u64
Return the parent size with the extra bits that encode the requested axis masked out And the y-axis value masked out
Trait Implementations§
Source§impl From<&LayoutInput> for CacheKey
impl From<&LayoutInput> for CacheKey
Source§fn from(input: &LayoutInput) -> Self
fn from(input: &LayoutInput) -> Self
Converts to this type from the input type.
impl Copy for CacheKey
impl Eq for CacheKey
impl StructuralPartialEq for CacheKey
Auto Trait Implementations§
impl Freeze for CacheKey
impl RefUnwindSafe for CacheKey
impl Send for CacheKey
impl Sync for CacheKey
impl Unpin for CacheKey
impl UnsafeUnpin for CacheKey
impl UnwindSafe for CacheKey
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