Struct allsorts_no_std::bitmap::BitmapGlyph [−][src]
A bitmap glyph with metrics.
Fields
ppem_x: Option<u16>
Horizontal pixels per em.
Will be None
if image data is a vector image.
ppem_y: Option<u16>
Vertical pixels per em.
Will be None
if image data is a vector image.
metrics: Metrics
Glyph metrics in pixels.
bitmap: Bitmap
Bitmap data.
Trait Implementations
impl<'a> From<(&'_ SbixStrike<'a>, &'_ SbixGlyph<'a>)> for BitmapGlyph
[src]
impl<'a> TryFrom<&'_ SVGDocumentRecord<'a>> for BitmapGlyph
[src]
type Error = ParseError
The type returned in the event of a conversion error.
fn try_from(svg_record: &SVGDocumentRecord<'a>) -> Result<Self, ParseError>
[src]
impl<'a> TryFrom<(&'_ BitmapInfo, GlyphBitmapData<'a>)> for BitmapGlyph
[src]
type Error = ParseError
The type returned in the event of a conversion error.
fn try_from(
(info, glyph): (&BitmapInfo, GlyphBitmapData<'a>)
) -> Result<Self, Self::Error>
[src]
(info, glyph): (&BitmapInfo, GlyphBitmapData<'a>)
) -> Result<Self, Self::Error>
Auto Trait Implementations
impl RefUnwindSafe for BitmapGlyph
impl Send for BitmapGlyph
impl Sync for BitmapGlyph
impl Unpin for BitmapGlyph
impl UnwindSafe for BitmapGlyph
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
pub fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
pub fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,