Struct allsorts::glyph_position::GlyphPosition
source · [−]pub struct GlyphPosition {
pub hori_advance: i32,
pub vert_advance: i32,
pub x_offset: i32,
pub y_offset: i32,
/* private fields */
}
Expand description
The position and advance of a glyph.
Fields
hori_advance: i32
Horizontal advance
vert_advance: i32
Vertical advance
x_offset: i32
Offset in the X (horizontal) direction of this glyph
y_offset: i32
Offset in the Y (vertical) direction of this glyph
Implementations
Trait Implementations
sourceimpl Clone for GlyphPosition
impl Clone for GlyphPosition
sourcefn clone(&self) -> GlyphPosition
fn clone(&self) -> GlyphPosition
Returns a copy of the value. Read more
1.0.0 · sourceconst fn clone_from(&mut self, source: &Self)
const fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresourceimpl Debug for GlyphPosition
impl Debug for GlyphPosition
sourceimpl Default for GlyphPosition
impl Default for GlyphPosition
sourcefn default() -> GlyphPosition
fn default() -> GlyphPosition
Returns the “default value” for a type. Read more
sourceimpl PartialEq<GlyphPosition> for GlyphPosition
impl PartialEq<GlyphPosition> for GlyphPosition
impl Copy for GlyphPosition
impl Eq for GlyphPosition
impl StructuralEq for GlyphPosition
Auto Trait Implementations
impl RefUnwindSafe for GlyphPosition
impl Send for GlyphPosition
impl Sync for GlyphPosition
impl Unpin for GlyphPosition
impl UnwindSafe for GlyphPosition
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more