Struct webrender_api::font::FontInstanceKey
source · #[repr(C)]pub struct FontInstanceKey(pub IdNamespace, pub u32);
Tuple Fields§
§0: IdNamespace
§1: u32
Implementations§
source§impl FontInstanceKey
impl FontInstanceKey
pub fn new(namespace: IdNamespace, key: u32) -> FontInstanceKey
Trait Implementations§
source§impl Clone for FontInstanceKey
impl Clone for FontInstanceKey
source§fn clone(&self) -> FontInstanceKey
fn clone(&self) -> FontInstanceKey
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 Debug for FontInstanceKey
impl Debug for FontInstanceKey
source§impl Default for FontInstanceKey
impl Default for FontInstanceKey
source§fn default() -> FontInstanceKey
fn default() -> FontInstanceKey
Returns the “default value” for a type. Read more
source§impl<'de> Deserialize<'de> for FontInstanceKey
impl<'de> Deserialize<'de> for FontInstanceKey
source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
source§impl Hash for FontInstanceKey
impl Hash for FontInstanceKey
source§impl MallocSizeOf for FontInstanceKey
impl MallocSizeOf for FontInstanceKey
source§fn size_of(&self, ops: &mut MallocSizeOfOps) -> usize
fn size_of(&self, ops: &mut MallocSizeOfOps) -> usize
Measure the heap usage of all descendant heap-allocated structures, but
not the space taken up by the value itself.
source§impl Ord for FontInstanceKey
impl Ord for FontInstanceKey
source§fn cmp(&self, other: &FontInstanceKey) -> Ordering
fn cmp(&self, other: &FontInstanceKey) -> Ordering
1.21.0 · 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 FontInstanceKey
impl PartialEq for FontInstanceKey
source§fn eq(&self, other: &FontInstanceKey) -> bool
fn eq(&self, other: &FontInstanceKey) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl PartialOrd for FontInstanceKey
impl PartialOrd for FontInstanceKey
source§fn partial_cmp(&self, other: &FontInstanceKey) -> Option<Ordering>
fn partial_cmp(&self, other: &FontInstanceKey) -> Option<Ordering>
1.0.0 · source§fn le(&self, other: &Rhs) -> bool
fn le(&self, other: &Rhs) -> bool
This method tests less than or equal to (for
self
and other
) and is used by the <=
operator. Read moresource§impl Peek for FontInstanceKey
impl Peek for FontInstanceKey
source§impl Poke for FontInstanceKey
impl Poke for FontInstanceKey
source§impl Serialize for FontInstanceKey
impl Serialize for FontInstanceKey
impl Copy for FontInstanceKey
impl Eq for FontInstanceKey
impl StructuralPartialEq for FontInstanceKey
Auto Trait Implementations§
impl Freeze for FontInstanceKey
impl RefUnwindSafe for FontInstanceKey
impl Send for FontInstanceKey
impl Sync for FontInstanceKey
impl Unpin for FontInstanceKey
impl UnwindSafe for FontInstanceKey
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