pub struct TextCacheMemoryReport {
pub logical_items_entries: usize,
pub logical_items_bytes: usize,
pub visual_items_entries: usize,
pub visual_items_bytes: usize,
pub shaped_items_entries: usize,
pub shaped_items_bytes: usize,
pub shaped_glyph_bytes: usize,
pub shaped_cluster_text_bytes: usize,
pub per_item_shaped_entries: usize,
pub per_item_shaped_bytes: usize,
}Expand description
Approximate heap bytes retained by a TextShapingCache.
Fields§
§logical_items_entries: usize§logical_items_bytes: usize§visual_items_entries: usize§visual_items_bytes: usize§shaped_items_entries: usize§shaped_items_bytes: usize§shaped_glyph_bytes: usize§shaped_cluster_text_bytes: usize§per_item_shaped_entries: usize§per_item_shaped_bytes: usizeImplementations§
Source§impl TextCacheMemoryReport
impl TextCacheMemoryReport
pub fn total_bytes(&self) -> usize
Trait Implementations§
Source§impl Clone for TextCacheMemoryReport
impl Clone for TextCacheMemoryReport
Source§fn clone(&self) -> TextCacheMemoryReport
fn clone(&self) -> TextCacheMemoryReport
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for TextCacheMemoryReport
impl Debug for TextCacheMemoryReport
Source§impl Default for TextCacheMemoryReport
impl Default for TextCacheMemoryReport
Source§fn default() -> TextCacheMemoryReport
fn default() -> TextCacheMemoryReport
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for TextCacheMemoryReport
impl RefUnwindSafe for TextCacheMemoryReport
impl Send for TextCacheMemoryReport
impl Sync for TextCacheMemoryReport
impl Unpin for TextCacheMemoryReport
impl UnsafeUnpin for TextCacheMemoryReport
impl UnwindSafe for TextCacheMemoryReport
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§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more