pub struct TextCacheKey {
pub text: String,
pub font_family: String,
pub font_size: u32,
pub bold: bool,
pub italic: bool,
}Expand description
Cache key for shaped text
Fields§
§text: StringText content to be shaped
font_family: StringFont family name
font_size: u32Font size (rounded to avoid float comparison issues)
bold: boolWhether text should be bold
italic: boolWhether text should be italic
Trait Implementations§
Source§impl Clone for TextCacheKey
impl Clone for TextCacheKey
Source§fn clone(&self) -> TextCacheKey
fn clone(&self) -> TextCacheKey
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 TextCacheKey
impl Debug for TextCacheKey
impl Eq for TextCacheKey
Source§impl Hash for TextCacheKey
impl Hash for TextCacheKey
Source§impl Ord for TextCacheKey
impl Ord for TextCacheKey
Source§fn cmp(&self, other: &TextCacheKey) -> Ordering
fn cmp(&self, other: &TextCacheKey) -> Ordering
1.21.0 (const: unstable) · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
Source§impl PartialEq for TextCacheKey
impl PartialEq for TextCacheKey
Source§fn eq(&self, other: &TextCacheKey) -> bool
fn eq(&self, other: &TextCacheKey) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl PartialOrd for TextCacheKey
impl PartialOrd for TextCacheKey
impl StructuralPartialEq for TextCacheKey
Auto Trait Implementations§
impl Freeze for TextCacheKey
impl RefUnwindSafe for TextCacheKey
impl Send for TextCacheKey
impl Sync for TextCacheKey
impl Unpin for TextCacheKey
impl UnsafeUnpin for TextCacheKey
impl UnwindSafe for TextCacheKey
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