pub enum AvatarSize {
XSmall,
Small,
Medium,
Large,
XLarge,
}Expand description
Diameter preset for an Avatar.
Maps to fixed point sizes so groups of avatars line up cleanly across surfaces. Scale the font and presence-dot proportionally.
Variants§
XSmall
20 pt. For dense lists or inline chips.
Small
28 pt. Inline with body text.
Medium
36 pt. The default.
Large
48 pt. Card headers and identity rows.
XLarge
64 pt. Profile headers and feature screens.
Trait Implementations§
Source§impl Clone for AvatarSize
impl Clone for AvatarSize
Source§fn clone(&self) -> AvatarSize
fn clone(&self) -> AvatarSize
Returns a duplicate of the value. Read more
1.0.0 · 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 AvatarSize
impl Debug for AvatarSize
Source§impl Hash for AvatarSize
impl Hash for AvatarSize
Source§impl PartialEq for AvatarSize
impl PartialEq for AvatarSize
impl Copy for AvatarSize
impl Eq for AvatarSize
impl StructuralPartialEq for AvatarSize
Auto Trait Implementations§
impl Freeze for AvatarSize
impl RefUnwindSafe for AvatarSize
impl Send for AvatarSize
impl Sync for AvatarSize
impl Unpin for AvatarSize
impl UnsafeUnpin for AvatarSize
impl UnwindSafe for AvatarSize
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