#[repr(C, packed(1))]pub struct GlyphPartRecord {
pub glyph_id: BigEndian<GlyphId16>,
pub start_connector_length: BigEndian<UfWord>,
pub end_connector_length: BigEndian<UfWord>,
pub full_advance: BigEndian<UfWord>,
pub part_flags: BigEndian<PartFlags>,
}Expand description
Fields§
§glyph_id: BigEndian<GlyphId16>Glyph ID for the part.
start_connector_length: BigEndian<UfWord>Advance width/ height, in design units, of the straight bar connector material at the start of the glyph in the direction of the extension.
end_connector_length: BigEndian<UfWord>Advance width/ height, in design units, of the straight bar connector material at the end of the glyph in the direction of the extension.
full_advance: BigEndian<UfWord>Full advance width/height for this part in the direction of the extension, in design units.
part_flags: BigEndian<PartFlags>Part qualifiers.
Implementations§
Source§impl GlyphPartRecord
impl GlyphPartRecord
Sourcepub fn start_connector_length(&self) -> UfWord
pub fn start_connector_length(&self) -> UfWord
Advance width/ height, in design units, of the straight bar connector material at the start of the glyph in the direction of the extension.
Sourcepub fn end_connector_length(&self) -> UfWord
pub fn end_connector_length(&self) -> UfWord
Advance width/ height, in design units, of the straight bar connector material at the end of the glyph in the direction of the extension.
Sourcepub fn full_advance(&self) -> UfWord
pub fn full_advance(&self) -> UfWord
Full advance width/height for this part in the direction of the extension, in design units.
Sourcepub fn part_flags(&self) -> PartFlags
pub fn part_flags(&self) -> PartFlags
Part qualifiers.
Trait Implementations§
impl AnyBitPattern for GlyphPartRecord
Source§impl Clone for GlyphPartRecord
impl Clone for GlyphPartRecord
Source§fn clone(&self) -> GlyphPartRecord
fn clone(&self) -> GlyphPartRecord
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreimpl Copy for GlyphPartRecord
Source§impl Debug for GlyphPartRecord
impl Debug for GlyphPartRecord
impl Eq for GlyphPartRecord
Source§impl FixedSize for GlyphPartRecord
impl FixedSize for GlyphPartRecord
Source§const RAW_BYTE_LEN: usize
const RAW_BYTE_LEN: usize
Source§impl Hash for GlyphPartRecord
impl Hash for GlyphPartRecord
Source§impl Ord for GlyphPartRecord
impl Ord for GlyphPartRecord
Source§fn cmp(&self, other: &GlyphPartRecord) -> Ordering
fn cmp(&self, other: &GlyphPartRecord) -> Ordering
1.21.0 (const: unstable) · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Source§impl PartialEq for GlyphPartRecord
impl PartialEq for GlyphPartRecord
Source§impl PartialOrd for GlyphPartRecord
impl PartialOrd for GlyphPartRecord
impl StructuralPartialEq for GlyphPartRecord
Auto Trait Implementations§
impl Freeze for GlyphPartRecord
impl RefUnwindSafe for GlyphPartRecord
impl Send for GlyphPartRecord
impl Sync for GlyphPartRecord
impl Unpin for GlyphPartRecord
impl UnsafeUnpin for GlyphPartRecord
impl UnwindSafe for GlyphPartRecord
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
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
bits
as &Self.