pub enum SetComponentsError {
TooFew {
needed: usize,
got: usize,
},
PatternSpace,
}Expand description
Why ColorValue::set_components refused the values.
Variants§
TooFew
The slice was shorter than the space’s component count.
PatternSpace
The current space is a pattern; only scn with a name changes it.
Trait Implementations§
Source§impl Clone for SetComponentsError
impl Clone for SetComponentsError
Source§fn clone(&self) -> SetComponentsError
fn clone(&self) -> SetComponentsError
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 SetComponentsError
Source§impl Debug for SetComponentsError
impl Debug for SetComponentsError
Source§impl Display for SetComponentsError
impl Display for SetComponentsError
impl Eq for SetComponentsError
Source§impl Error for SetComponentsError
impl Error for SetComponentsError
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 SetComponentsError
impl PartialEq for SetComponentsError
impl StructuralPartialEq for SetComponentsError
Auto Trait Implementations§
impl Freeze for SetComponentsError
impl RefUnwindSafe for SetComponentsError
impl Send for SetComponentsError
impl Sync for SetComponentsError
impl Unpin for SetComponentsError
impl UnsafeUnpin for SetComponentsError
impl UnwindSafe for SetComponentsError
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