pub struct PortableNativeGlyph {
pub glyph_id: u16,
pub x: i32,
pub y: i32,
pub advance: i32,
pub cluster_start: u32,
pub cluster_end: u32,
pub src_start: u32,
pub src_end: u32,
}Fields§
§glyph_id: u16§x: i32§y: i32§advance: i32§cluster_start: u32§cluster_end: u32§src_start: u32SOURCE byte span (in the producing node’s primary_source.source
coordinates) of the input char(s) that shaped this glyph, resolved from
the per-code-unit tracked spans. 0/0 means unmapped (tracking off, no
source, cross-source, or stale). Set by src_resolve_native_glyphs; the
rendering fields (glyph_id/x/y/advance) are never touched.
src_end: u32Trait Implementations§
Source§impl Clone for PortableNativeGlyph
impl Clone for PortableNativeGlyph
Source§fn clone(&self) -> PortableNativeGlyph
fn clone(&self) -> PortableNativeGlyph
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Copy for PortableNativeGlyph
Source§impl Debug for PortableNativeGlyph
impl Debug for PortableNativeGlyph
Source§impl Default for PortableNativeGlyph
impl Default for PortableNativeGlyph
Source§fn default() -> PortableNativeGlyph
fn default() -> PortableNativeGlyph
Returns the “default value” for a type. Read more
impl Eq for PortableNativeGlyph
Source§impl PartialEq for PortableNativeGlyph
impl PartialEq for PortableNativeGlyph
impl StructuralPartialEq for PortableNativeGlyph
Auto Trait Implementations§
impl Freeze for PortableNativeGlyph
impl RefUnwindSafe for PortableNativeGlyph
impl Send for PortableNativeGlyph
impl Sync for PortableNativeGlyph
impl Unpin for PortableNativeGlyph
impl UnsafeUnpin for PortableNativeGlyph
impl UnwindSafe for PortableNativeGlyph
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