pub enum Color<'a> {
Green,
Blue,
Red,
Yellow,
Orange,
Purple,
Pink,
Grey,
Cyan,
Black,
Custom(&'a str),
}
Expand description
Possible colors for use in a badge.
Variants§
Green
green
Blue
blue
Red
red
Yellow
yellow
Orange
orange
Purple
purple
Pink
pink
Grey
grey
Cyan
cyan
Black
black
Custom(&'a str)
A custom hex color in the form RGB
or RRGGBB
.
Implementations§
Trait Implementations§
impl<'a> Copy for Color<'a>
impl<'a> StructuralPartialEq for Color<'a>
Auto Trait Implementations§
impl<'a> Freeze for Color<'a>
impl<'a> RefUnwindSafe for Color<'a>
impl<'a> Send for Color<'a>
impl<'a> Sync for Color<'a>
impl<'a> Unpin for Color<'a>
impl<'a> UnwindSafe for Color<'a>
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