#[non_exhaustive]pub struct Format2 {
pub sub_header_keys: [uint16; 256],
/* private fields */
}Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Non-exhaustive structs could have additional fields added in future. Therefore, non-exhaustive structs cannot be constructed in external crates using the traditional
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.sub_header_keys: [uint16; 256]Implementations§
Source§impl Format2
impl Format2
pub fn sub_headers(&self) -> &[SubHeader]
pub const fn sub_header(&self, high_byte: u8) -> &SubHeader
pub const fn sub_header_zero(&self) -> &SubHeader
pub const fn map_one(&self, single_byte: u8) -> GlyphId
pub const fn map_two(&self, high_byte: u8, low_byte: u8) -> GlyphId
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Format2
impl RefUnwindSafe for Format2
impl Send for Format2
impl Sync for Format2
impl Unpin for Format2
impl UnsafeUnpin for Format2
impl UnwindSafe for Format2
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