pub struct GlyphAllocation {
pub(crate) id: GlyphId,
pub advance_width_px: f32,
pub uv_rect: UvRect,
}Fields§
§id: GlyphIdUsed for pair-kerning.
Doesn’t need to be unique.
Use ab_glyph::GlyphId(0) if you just want to have an id, and don’t care.
advance_width_px: f32Unit: screen pixels.
uv_rect: UvRectUV rectangle for drawing.
Trait Implementations§
Source§impl Clone for GlyphAllocation
impl Clone for GlyphAllocation
Source§fn clone(&self) -> GlyphAllocation
fn clone(&self) -> GlyphAllocation
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for GlyphAllocation
impl Debug for GlyphAllocation
Source§impl Default for GlyphAllocation
impl Default for GlyphAllocation
Source§fn default() -> GlyphAllocation
fn default() -> GlyphAllocation
Returns the “default value” for a type. Read more
Source§impl PartialEq for GlyphAllocation
impl PartialEq for GlyphAllocation
impl Copy for GlyphAllocation
impl StructuralPartialEq for GlyphAllocation
Auto Trait Implementations§
impl Freeze for GlyphAllocation
impl RefUnwindSafe for GlyphAllocation
impl Send for GlyphAllocation
impl Sync for GlyphAllocation
impl Unpin for GlyphAllocation
impl UnwindSafe for GlyphAllocation
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