pub enum Size {
Tiny,
Mini,
Regular,
Large,
Custom(u16),
}Expand description
Canonical size variants for icon packs.
Variants§
Tiny
Smallest available size (pack-specific).
Mini
Small size variant (pack-specific).
Regular
Default size variant.
Large
Larger size variant when a pack provides it.
Custom(u16)
Exact size key from a pack map (pixel or design size as u16).
Matching is exact: Custom(n) only resolves when the pack table
lists that same n for the icon. Passing an arbitrary u16 does not
synthesize, scale, or invent a font; unavailable keys yield
crate::IconError::VariantUnavailable (or a miss on the name path).
Trait Implementations§
impl Copy for Size
impl Eq for Size
Source§impl Ord for Size
impl Ord for Size
1.21.0 (const: unstable) · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
1.21.0 (const: unstable) · Source§fn min(self, other: Self) -> Selfwhere
Self: Sized,
fn min(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the minimum of two values. Read more
Source§impl PartialOrd for Size
impl PartialOrd for Size
impl StructuralPartialEq for Size
Auto Trait Implementations§
impl Freeze for Size
impl RefUnwindSafe for Size
impl Send for Size
impl Sync for Size
impl Unpin for Size
impl UnsafeUnpin for Size
impl UnwindSafe for Size
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