pub enum AvatarSize {
XSmall,
Small,
Medium,
Large,
XLarge,
Custom(f32),
}Expand description
Avatar size presets
Variants§
XSmall
Extra small (24px)
Small
Small (32px) - shadcn default
Medium
Medium (40px)
Large
Large (48px)
XLarge
Extra large (64px)
Custom(f32)
Custom size
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 Default for AvatarSize
impl Default for AvatarSize
Source§fn default() -> AvatarSize
fn default() -> AvatarSize
Returns the “default value” for a type. Read more
Source§impl PartialEq for AvatarSize
impl PartialEq for AvatarSize
impl Copy 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