pub struct EbdtComponent {
pub glyph_id: u16,
pub x_offset: i8,
pub y_offset: i8,
}Expand description
The EbdtComponent record is used in glyph bitmap data formats 8 and 9.
Fields§
§glyph_id: u16Component glyph ID
x_offset: i8Position of component left
y_offset: i8Position of component top
Trait Implementations§
Auto Trait Implementations§
impl Freeze for EbdtComponent
impl RefUnwindSafe for EbdtComponent
impl Send for EbdtComponent
impl Sync for EbdtComponent
impl Unpin for EbdtComponent
impl UnwindSafe for EbdtComponent
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> 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 moreSource§impl<T> ReadBinary for Twhere
T: ReadUnchecked,
impl<T> ReadBinary for Twhere
T: ReadUnchecked,
type HostType<'a> = <T as ReadUnchecked>::HostType
fn read<'a>( ctxt: &mut ReadCtxt<'a>, ) -> Result<<T as ReadBinary>::HostType<'a>, ParseError>
Source§impl<T> ReadBinaryDep for Twhere
T: ReadBinary,
impl<T> ReadBinaryDep for Twhere
T: ReadBinary,
type Args<'a> = ()
type HostType<'a> = <T as ReadBinary>::HostType<'a>
fn read_dep<'a>( ctxt: &mut ReadCtxt<'a>, _: <T as ReadBinaryDep>::Args<'_>, ) -> Result<<T as ReadBinaryDep>::HostType<'a>, ParseError>
Source§impl<T> ReadFixedSizeDep for Twhere
T: ReadUnchecked,
impl<T> ReadFixedSizeDep for Twhere
T: ReadUnchecked,
Source§impl<T> ReadUnchecked for Twhere
T: ReadFrom,
impl<T> ReadUnchecked for Twhere
T: ReadFrom,
Source§const SIZE: usize = const SIZE: usize = <T::ReadType>::SIZE;
const SIZE: usize = const SIZE: usize = <T::ReadType>::SIZE;
The number of bytes consumed by
read_unchecked.type HostType = T
Source§unsafe fn read_unchecked<'a>(
ctxt: &mut ReadCtxt<'a>,
) -> <T as ReadUnchecked>::HostType
unsafe fn read_unchecked<'a>( ctxt: &mut ReadCtxt<'a>, ) -> <T as ReadUnchecked>::HostType
Must read exactly
SIZE bytes.
Unsafe as it avoids prohibitively expensive per-byte bounds checking.