pub enum BaseColor {
Black,
Red,
Green,
Yellow,
Blue,
Magenta,
Cyan,
White,
}
Expand description
One of the 8 base colors.
Variants
Black
Black color
Color #0
Red
Red color
Color #1
Green
Green color
Color #2
Yellow
Yellow color (Red + Green)
Color #3
Blue
Blue color
Color #4
Magenta
Magenta color (Red + Blue)
Color #5
Cyan
Cyan color (Green + Blue)
Color #6
White
White color (Red + Green + Blue)
Color #7
Implementations
Trait Implementations
sourceimpl Enum for BaseColor
impl Enum for BaseColor
sourcefn from_usize(value: usize) -> BaseColor
fn from_usize(value: usize) -> BaseColor
Takes an usize, and returns an element matching into_usize
function.
sourcefn into_usize(self) -> usize
fn into_usize(self) -> usize
Returns an unique identifier for a value within range of 0..Array::LENGTH
.
sourceimpl From<BaseColor> for ColorStyle
impl From<BaseColor> for ColorStyle
sourcefn from(color: BaseColor) -> ColorStyle
fn from(color: BaseColor) -> ColorStyle
Converts to this type from the input type.
sourceimpl PartialEq<BaseColor> for BaseColor
impl PartialEq<BaseColor> for BaseColor
impl Copy for BaseColor
impl Eq for BaseColor
impl StructuralEq for BaseColor
impl StructuralPartialEq for BaseColor
Auto Trait Implementations
impl RefUnwindSafe for BaseColor
impl Send for BaseColor
impl Sync for BaseColor
impl Unpin for BaseColor
impl UnwindSafe for BaseColor
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more