pub struct Rasterised<'a> {
pub metrics: GlyphMetrics,
pub coverage: &'a [u8],
pub stride: usize,
}Expand description
One rasterised glyph, borrowed from whatever scratch space the source used.
Fields§
§metrics: GlyphMetricsWhere it sits and how far the pen moves.
coverage: &'a [u8]Coverage, 0 transparent to 255 solid, row-major.
stride: usizeBytes per row of coverage, at least metrics.size.width.
Trait Implementations§
Source§impl<'a> Clone for Rasterised<'a>
impl<'a> Clone for Rasterised<'a>
Source§fn clone(&self) -> Rasterised<'a>
fn clone(&self) -> Rasterised<'a>
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<'a> Copy for Rasterised<'a>
Auto Trait Implementations§
impl<'a> Freeze for Rasterised<'a>
impl<'a> RefUnwindSafe for Rasterised<'a>
impl<'a> Send for Rasterised<'a>
impl<'a> Sync for Rasterised<'a>
impl<'a> Unpin for Rasterised<'a>
impl<'a> UnsafeUnpin for Rasterised<'a>
impl<'a> UnwindSafe for Rasterised<'a>
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