#[non_exhaustive]pub struct AtlasConfig {
pub page_size: u32,
pub max_pages: u32,
}Expand description
Shape of the glyph atlas: square pages stacked vertically in one texture.
The atlas starts as one page and grows a page at a time, up to max_pages; growing never
moves a glyph. Once at its limit, the least recently used glyphs are evicted.
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.page_size: u32Side of one page in texels; also the largest glyph the atlas holds.
max_pages: u32Pages the atlas may grow to.
Implementations§
Source§impl AtlasConfig
impl AtlasConfig
Trait Implementations§
Source§impl Clone for AtlasConfig
impl Clone for AtlasConfig
impl Copy for AtlasConfig
Source§impl Debug for AtlasConfig
impl Debug for AtlasConfig
Source§impl Default for AtlasConfig
impl Default for AtlasConfig
impl Eq for AtlasConfig
Source§impl PartialEq for AtlasConfig
impl PartialEq for AtlasConfig
impl StructuralPartialEq for AtlasConfig
Auto Trait Implementations§
impl Freeze for AtlasConfig
impl RefUnwindSafe for AtlasConfig
impl Send for AtlasConfig
impl Sync for AtlasConfig
impl Unpin for AtlasConfig
impl UnsafeUnpin for AtlasConfig
impl UnwindSafe for AtlasConfig
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