pub enum AvatarTone {
Sky,
Green,
Amber,
Red,
Purple,
Neutral,
}Expand description
Background tone for an Avatar’s initials variant.
When the user passes None (the default), the tone is derived
deterministically from the initials text so the same person gets the
same colour everywhere.
Variants§
Sky
Sky blue.
Green
Green.
Amber
Amber.
Red
Red.
Purple
Purple.
Neutral
Theme-neutral grey. Also used for the +N overflow tile.
Implementations§
Trait Implementations§
Source§impl Clone for AvatarTone
impl Clone for AvatarTone
Source§fn clone(&self) -> AvatarTone
fn clone(&self) -> AvatarTone
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 AvatarTone
impl Debug for AvatarTone
Source§impl Hash for AvatarTone
impl Hash for AvatarTone
Source§impl PartialEq for AvatarTone
impl PartialEq for AvatarTone
impl Copy for AvatarTone
impl Eq for AvatarTone
impl StructuralPartialEq for AvatarTone
Auto Trait Implementations§
impl Freeze for AvatarTone
impl RefUnwindSafe for AvatarTone
impl Send for AvatarTone
impl Sync for AvatarTone
impl Unpin for AvatarTone
impl UnsafeUnpin for AvatarTone
impl UnwindSafe for AvatarTone
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