Struct fontdue::layout::GlyphRasterConfig [−][src]
Expand description
Configuration for rasterizing a glyph. This struct is also a hashable key that can be used to uniquely identify a rasterized glyph for applications that want to cache glyphs.
Fields
glyph_index: u16
Expand description
The glyph index represented by the glyph being positioned.
px: f32
Expand description
The scale of the glyph being positioned in px.
font_index: usize
Expand description
The index of the font used in layout to raster the glyph.
Trait Implementations
impl Clone for GlyphRasterConfig
[src]
impl Clone for GlyphRasterConfig
[src]fn clone(&self) -> GlyphRasterConfig
[src]
fn clone(&self) -> GlyphRasterConfig
[src]Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0[src]
fn clone_from(&mut self, source: &Self)
1.0.0[src]Performs copy-assignment from source
. Read more
impl Debug for GlyphRasterConfig
[src]
impl Debug for GlyphRasterConfig
[src]impl Hash for GlyphRasterConfig
[src]
impl Hash for GlyphRasterConfig
[src]impl PartialEq<GlyphRasterConfig> for GlyphRasterConfig
[src]
impl PartialEq<GlyphRasterConfig> for GlyphRasterConfig
[src]impl Copy for GlyphRasterConfig
[src]
impl Eq for GlyphRasterConfig
[src]
Auto Trait Implementations
impl RefUnwindSafe for GlyphRasterConfig
impl Send for GlyphRasterConfig
impl Sync for GlyphRasterConfig
impl Unpin for GlyphRasterConfig
impl UnwindSafe for GlyphRasterConfig
Blanket Implementations
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]pub fn borrow_mut(&mut self) -> &mut T
[src]
pub fn borrow_mut(&mut self) -> &mut T
[src]Mutably borrows from an owned value. Read more
impl<T> CallHasher for T where
T: Hash,
impl<T> CallHasher for T where
T: Hash,
impl<T> ToOwned for T where
T: Clone,
[src]
impl<T> ToOwned for T where
T: Clone,
[src]type Owned = T
type Owned = T
The resulting type after obtaining ownership.
pub fn to_owned(&self) -> T
[src]
pub fn to_owned(&self) -> T
[src]Creates owned data from borrowed data, usually by cloning. Read more
pub fn clone_into(&self, target: &mut T)
[src]
pub fn clone_into(&self, target: &mut T)
[src]🔬 This is a nightly-only experimental API. (toowned_clone_into
)
recently added
Uses borrowed data to replace owned data, usually by cloning. Read more