pub struct GlyphId24(/* private fields */);Expand description
A 24-bit glyph identifier.
Implementations§
Source§impl GlyphId24
impl GlyphId24
Sourcepub const fn checked_new(raw: u32) -> Option<Self>
pub const fn checked_new(raw: u32) -> Option<Self>
Construct a new GlyphId24, returning None on overflow.
pub const fn to_be_bytes(self) -> [u8; 3]
pub const fn from_be_bytes(bytes: [u8; 3]) -> Self
Trait Implementations§
impl AnyBitPattern for GlyphId24
impl Copy for GlyphId24
Source§impl<'de> Deserialize<'de> for GlyphId24
impl<'de> Deserialize<'de> for GlyphId24
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
impl Eq for GlyphId24
Source§impl Ord for GlyphId24
impl Ord for GlyphId24
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 PartialOrd for GlyphId24
impl PartialOrd for GlyphId24
impl StructuralPartialEq for GlyphId24
Auto Trait Implementations§
impl Freeze for GlyphId24
impl RefUnwindSafe for GlyphId24
impl Send for GlyphId24
impl Sync for GlyphId24
impl Unpin for GlyphId24
impl UnsafeUnpin for GlyphId24
impl UnwindSafe for GlyphId24
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> CheckedBitPattern for Twhere
T: AnyBitPattern,
impl<T> CheckedBitPattern for Twhere
T: AnyBitPattern,
Source§type Bits = T
type Bits = T
Self must have the same layout as the specified Bits except for
the possible invalid bit patterns being checked during
is_valid_bit_pattern.Source§fn is_valid_bit_pattern(_bits: &T) -> bool
fn is_valid_bit_pattern(_bits: &T) -> bool
If this function returns true, then it must be valid to reinterpret
bits
as &Self.Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
Source§impl<T> FixedSize for Twhere
T: Scalar,
impl<T> FixedSize for Twhere
T: Scalar,
Source§const RAW_BYTE_LEN: usize = const RAW_BYTE_LEN: usize = std::mem::size_of::<T::Raw>();
const RAW_BYTE_LEN: usize = const RAW_BYTE_LEN: usize = std::mem::size_of::<T::Raw>();
The raw size of this type, in bytes. Read more