pub struct FontAtlasRon { /* private fields */ }Expand description
A font atlas’s glyph map (font-atlas, .ron), checked as
FontAtlasDef::from_source says against the PNG beside it with its
name (fonts/atlas.ron and fonts/atlas.png) and the glyphs the game
requires.
Implementations§
Trait Implementations§
Source§impl Clone for FontAtlasRon
impl Clone for FontAtlasRon
Source§fn clone(&self) -> FontAtlasRon
fn clone(&self) -> FontAtlasRon
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 moreSource§impl Debug for FontAtlasRon
impl Debug for FontAtlasRon
Source§impl Default for FontAtlasRon
impl Default for FontAtlasRon
Source§fn default() -> FontAtlasRon
fn default() -> FontAtlasRon
Returns the “default value” for a type. Read more
impl Eq for FontAtlasRon
Source§impl Format for FontAtlasRon
impl Format for FontAtlasRon
Source§type Asset = FontAtlasDef
type Asset = FontAtlasDef
The kind it reads.
Source§fn id(&self) -> &'static str
fn id(&self) -> &'static str
Stable id, e.g.
"png", "tiled-tmx", "yarn": one per format
of a kind.Source§fn extensions(&self) -> &'static [&'static str]
fn extensions(&self) -> &'static [&'static str]
File extensions this format claims, lowercase, without the dot. A
format that only stands in another’s place (a one-bit picture at a
PNG’s path) claims none and is found by
sniff.Source§fn max_bytes(&self) -> usize
fn max_bytes(&self) -> usize
The most bytes it reads: a bigger file is refused before
decode sees it. DEFAULT_MAX_BYTES unless the
format says.Source§fn decode(
&self,
file: &AssetPath,
bytes: &[u8],
cx: &DecodeCx<'_>,
) -> Result<FontAtlasDef, Vec<ContentError>>
fn decode( &self, file: &AssetPath, bytes: &[u8], cx: &DecodeCx<'_>, ) -> Result<FontAtlasDef, Vec<ContentError>>
Every problem found, each with file and place; never a panic.
Source§impl PartialEq for FontAtlasRon
impl PartialEq for FontAtlasRon
impl StructuralPartialEq for FontAtlasRon
Auto Trait Implementations§
impl Freeze for FontAtlasRon
impl RefUnwindSafe for FontAtlasRon
impl Send for FontAtlasRon
impl Sync for FontAtlasRon
impl Unpin for FontAtlasRon
impl UnsafeUnpin for FontAtlasRon
impl UnwindSafe for FontAtlasRon
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