pub struct SmallGlyphMetrics {
pub height: u8,
pub width: u8,
pub bearing_x: i8,
pub bearing_y: i8,
pub advance: u8,
}
Fields
height: u8
width: u8
bearing_x: i8
bearing_y: i8
advance: u8
Trait Implementations
sourceimpl Clone for SmallGlyphMetrics
impl Clone for SmallGlyphMetrics
sourcefn clone(&self) -> SmallGlyphMetrics
fn clone(&self) -> SmallGlyphMetrics
Returns a copy of the value. Read more
1.0.0 · sourceconst fn clone_from(&mut self, source: &Self)
const fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresourceimpl Debug for SmallGlyphMetrics
impl Debug for SmallGlyphMetrics
sourceimpl<'a> ReadFrom<'a> for SmallGlyphMetrics
impl<'a> ReadFrom<'a> for SmallGlyphMetrics
impl Copy for SmallGlyphMetrics
Auto Trait Implementations
impl RefUnwindSafe for SmallGlyphMetrics
impl Send for SmallGlyphMetrics
impl Sync for SmallGlyphMetrics
impl Unpin for SmallGlyphMetrics
impl UnwindSafe for SmallGlyphMetrics
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
sourceimpl<'a, T> ReadBinary<'a> for Twhere
T: ReadUnchecked<'a>,
impl<'a, T> ReadBinary<'a> for Twhere
T: ReadUnchecked<'a>,
type HostType = <T as ReadUnchecked<'a>>::HostType
fn read(
ctxt: &mut ReadCtxt<'a>
) -> Result<<T as ReadBinary<'a>>::HostType, ParseError>
sourceimpl<'a, T> ReadBinaryDep<'a> for Twhere
T: ReadBinary<'a>,
impl<'a, T> ReadBinaryDep<'a> for Twhere
T: ReadBinary<'a>,
type Args = ()
type HostType = <T as ReadBinary<'a>>::HostType
fn read_dep(
ctxt: &mut ReadCtxt<'a>,
<T as ReadBinaryDep<'a>>::Args
) -> Result<<T as ReadBinaryDep<'a>>::HostType, ParseError>
sourceimpl<'a, T> ReadFixedSizeDep<'a> for Twhere
T: ReadUnchecked<'a>,
impl<'a, T> ReadFixedSizeDep<'a> for Twhere
T: ReadUnchecked<'a>,
sourceimpl<'a, T> ReadUnchecked<'a> for Twhere
T: ReadFrom<'a>,
impl<'a, T> ReadUnchecked<'a> for Twhere
T: ReadFrom<'a>,
type HostType = T
sourceunsafe fn read_unchecked(
ctxt: &mut ReadCtxt<'a>
) -> <T as ReadUnchecked<'a>>::HostType
unsafe fn read_unchecked(
ctxt: &mut ReadCtxt<'a>
) -> <T as ReadUnchecked<'a>>::HostType
Must read exactly
SIZE
bytes.
Unsafe as it avoids prohibitively expensive per-byte bounds checking. Read more