#[repr(C, packed(1))]pub struct Clip {
pub start_glyph_id: BigEndian<GlyphId16>,
pub end_glyph_id: BigEndian<GlyphId16>,
pub clip_box_offset: BigEndian<Offset24>,
}
Expand description
Clip record
Fields§
§start_glyph_id: BigEndian<GlyphId16>
First glyph ID in the range.
end_glyph_id: BigEndian<GlyphId16>
Last glyph ID in the range.
clip_box_offset: BigEndian<Offset24>
Offset to a ClipBox table, from the beginning of the ClipList
table.
Implementations§
source§impl Clip
impl Clip
sourcepub fn start_glyph_id(&self) -> GlyphId16
pub fn start_glyph_id(&self) -> GlyphId16
First glyph ID in the range.
sourcepub fn end_glyph_id(&self) -> GlyphId16
pub fn end_glyph_id(&self) -> GlyphId16
Last glyph ID in the range.
sourcepub fn clip_box_offset(&self) -> Offset24
pub fn clip_box_offset(&self) -> Offset24
Offset to a ClipBox table, from the beginning of the ClipList
table.
Trait Implementations§
source§impl FixedSize for Clip
impl FixedSize for Clip
source§const RAW_BYTE_LEN: usize = 7usize
const RAW_BYTE_LEN: usize = 7usize
The raw size of this type, in bytes. Read more
source§impl<'a> SomeRecord<'a> for Clip
impl<'a> SomeRecord<'a> for Clip
fn traverse(self, data: FontData<'a>) -> RecordResolver<'a>
impl AnyBitPattern for Clip
impl Copy for Clip
Auto Trait Implementations§
impl Freeze for Clip
impl RefUnwindSafe for Clip
impl Send for Clip
impl Sync for Clip
impl Unpin for Clip
impl UnwindSafe for Clip
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,
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
If this function returns true, then it must be valid to reinterpret
bits
as &Self
.source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)