#[non_exhaustive]pub struct SdfFontAsset<T> {
pub width: u16,
pub height: u16,
pub data: Vec<u8>,
pub metadata: Vec<Glyph<T>>,
}
Expand description
The result of asset generation
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Non-exhaustive structs could have additional fields added in future. Therefore, non-exhaustive structs cannot be constructed in external crates using the traditional
Struct { .. }
syntax; cannot be matched against without a wildcard ..
; and struct update syntax will not work.width: u16
The width of the resulting image in pixels
height: u16
The height of the resulting image in pixels
data: Vec<u8>
The raw image data
metadata: Vec<Glyph<T>>
A list of metadata for the rendered glyphs
Trait Implementations§
Source§impl<T: Clone> Clone for SdfFontAsset<T>
impl<T: Clone> Clone for SdfFontAsset<T>
Source§fn clone(&self) -> SdfFontAsset<T>
fn clone(&self) -> SdfFontAsset<T>
Returns a duplicate of the value. Read more
1.0.0 · Source§const fn clone_from(&mut self, source: &Self)
const fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreAuto Trait Implementations§
impl<T> Freeze for SdfFontAsset<T>
impl<T> RefUnwindSafe for SdfFontAsset<T>where
T: RefUnwindSafe,
impl<T> Send for SdfFontAsset<T>where
T: Send,
impl<T> Sync for SdfFontAsset<T>where
T: Sync,
impl<T> Unpin for SdfFontAsset<T>where
T: Unpin,
impl<T> UnwindSafe for SdfFontAsset<T>where
T: UnwindSafe,
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