Struct read_fonts::tables::bitmap::BdtComponent
source · #[repr(C, packed(1))]pub struct BdtComponent {
pub glyph_id: BigEndian<GlyphId>,
pub x_offset: BigEndian<i8>,
pub y_offset: BigEndian<i8>,
}
Expand description
EbdtComponent record.
Fields§
§glyph_id: BigEndian<GlyphId>
Component glyph ID.
x_offset: BigEndian<i8>
Position of component left.
y_offset: BigEndian<i8>
Position of component top.
Implementations§
Trait Implementations§
source§impl Clone for BdtComponent
impl Clone for BdtComponent
source§fn clone(&self) -> BdtComponent
fn clone(&self) -> BdtComponent
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 BdtComponent
impl Debug for BdtComponent
source§impl FixedSize for BdtComponent
impl FixedSize for BdtComponent
source§const RAW_BYTE_LEN: usize = 4usize
const RAW_BYTE_LEN: usize = 4usize
The raw size of this type, in bytes. Read more
source§impl Hash for BdtComponent
impl Hash for BdtComponent
source§impl Ord for BdtComponent
impl Ord for BdtComponent
source§fn cmp(&self, other: &BdtComponent) -> Ordering
fn cmp(&self, other: &BdtComponent) -> 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 BdtComponent
impl PartialEq for BdtComponent
source§fn eq(&self, other: &BdtComponent) -> bool
fn eq(&self, other: &BdtComponent) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl PartialOrd for BdtComponent
impl PartialOrd for BdtComponent
source§fn partial_cmp(&self, other: &BdtComponent) -> Option<Ordering>
fn partial_cmp(&self, other: &BdtComponent) -> 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<'a> SomeRecord<'a> for BdtComponent
impl<'a> SomeRecord<'a> for BdtComponent
fn traverse(self, data: FontData<'a>) -> RecordResolver<'a>
impl AnyBitPattern for BdtComponent
impl Copy for BdtComponent
impl Eq for BdtComponent
impl StructuralPartialEq for BdtComponent
Auto Trait Implementations§
impl Freeze for BdtComponent
impl RefUnwindSafe for BdtComponent
impl Send for BdtComponent
impl Sync for BdtComponent
impl Unpin for BdtComponent
impl UnwindSafe for BdtComponent
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,
§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
.