pub struct InvalidAnsiIndex(pub u8);Expand description
Error returned when a u8 value has no corresponding AnsiColor.
Tuple Fields§
§0: u8Trait Implementations§
Source§impl Clone for InvalidAnsiIndex
impl Clone for InvalidAnsiIndex
Source§fn clone(&self) -> InvalidAnsiIndex
fn clone(&self) -> InvalidAnsiIndex
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 moreSource§impl Debug for InvalidAnsiIndex
impl Debug for InvalidAnsiIndex
Source§impl Display for InvalidAnsiIndex
impl Display for InvalidAnsiIndex
Source§impl Error for InvalidAnsiIndex
impl Error for InvalidAnsiIndex
1.30.0 · Source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
Returns the lower-level source of this error, if any. Read more
1.0.0 · Source§fn description(&self) -> &str
fn description(&self) -> &str
👎Deprecated since 1.42.0:
use the Display impl or to_string()
Source§impl PartialEq for InvalidAnsiIndex
impl PartialEq for InvalidAnsiIndex
Source§fn eq(&self, other: &InvalidAnsiIndex) -> bool
fn eq(&self, other: &InvalidAnsiIndex) -> bool
Tests for
self and other values to be equal, and is used by ==.impl Copy for InvalidAnsiIndex
impl Eq for InvalidAnsiIndex
impl StructuralPartialEq for InvalidAnsiIndex
Auto Trait Implementations§
impl Freeze for InvalidAnsiIndex
impl RefUnwindSafe for InvalidAnsiIndex
impl Send for InvalidAnsiIndex
impl Sync for InvalidAnsiIndex
impl Unpin for InvalidAnsiIndex
impl UnsafeUnpin for InvalidAnsiIndex
impl UnwindSafe for InvalidAnsiIndex
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§impl<C> WithAlpha for Cwhere
C: Copy,
impl<C> WithAlpha for Cwhere
C: Copy,
§fn with_alpha_first<A>(self, alpha: A) -> AlphaFirst<A, Self>
fn with_alpha_first<A>(self, alpha: A) -> AlphaFirst<A, Self>
Wraps
self with alpha, storing alpha before the color in memory
(see [AlphaFirst]).§fn with_alpha_last<A>(self, alpha: A) -> AlphaLast<A, Self>
fn with_alpha_last<A>(self, alpha: A) -> AlphaLast<A, Self>
Wraps
self with alpha, storing alpha after the color in memory
(see [AlphaLast]).