pub struct Segment {
pub start: u32,
pub end: u32,
pub first_glyph: u32,
}Expand description
One segment of a modelled subtable: an inclusive codepoint run.
Ascending and non-overlapping across the subtable. The glyph at
first_glyph covers start, and — unless the owning subtable supplies an
explicit glyph array for this segment — each subsequent codepoint takes the
next glyph id.
Fields§
§start: u32First codepoint of the run, as a u32 (format 12 goes above the BMP).
end: u32Last codepoint of the run, inclusive.
first_glyph: u32The glyph id at start. When the subtable carries an explicit glyph
array for this segment, that array is authoritative and this is only
its first entry.
Trait Implementations§
impl Copy for Segment
impl Eq for Segment
impl StructuralPartialEq for Segment
Auto Trait Implementations§
impl Freeze for Segment
impl RefUnwindSafe for Segment
impl Send for Segment
impl Sync for Segment
impl Unpin for Segment
impl UnsafeUnpin for Segment
impl UnwindSafe for Segment
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