pub enum Format {
Png {
scale: usize,
},
Svg,
Ico {
entries: &'static [(Mark, usize)],
},
}Expand description
How an asset is encoded.
Variants§
Png
Blocks of pixels, scale a site.
Svg
One unit a site, scaled by whoever renders it.
Ico
A .ico holding one PNG an entry. Each entry names its own mark,
because the ladder changes mark between 16 and 48 pixels and a
favicon container spans exactly that range; the scale is whatever
makes that size out of that mark’s lattice.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Format
impl RefUnwindSafe for Format
impl Send for Format
impl Sync for Format
impl Unpin for Format
impl UnsafeUnpin for Format
impl UnwindSafe for Format
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