pub enum AvatarSize {
Small,
Medium,
Large,
XLarge,
Custom(f32),
}Expand description
Discrete avatar size variants. Custom(px) accepts an arbitrary
logical-pixel side length. The default size resolution table lives
in teksilo_widgets::styles::recipe_avatar_style::avatar_pixel_size.
Variants§
Small
Small — list rows, mention chips.
Medium
Medium — comment threads, sidebars (default).
Large
Large — profile cards.
XLarge
X-large — settings, “your account” headers.
Custom(f32)
Arbitrary side length.
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 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Copy for AvatarSize
Source§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 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