pub enum PaletteProblem {
Length {
len: usize,
},
UnknownRole {
index: usize,
tag: u16,
},
InvalidScheme {
index: usize,
scheme: u16,
},
Duplicate {
index: usize,
role: ColorRole,
scheme: ColorScheme,
},
}Expand description
What is wrong with one entry of a palette that arrived over the wire.
Each is reported, and the entry is left out. The rest of the palette still applies: throwing the whole theme away for one bad entry would open the application with no colours at all.
Variants§
Length
The palette is not a whole number of entries. The trailing bytes are ignored.
UnknownRole
InvalidScheme
A scheme that is neither light nor dark, FollowSystem included.
Duplicate
The same role and scheme a second time. The first one stands.
Trait Implementations§
Source§impl Clone for PaletteProblem
impl Clone for PaletteProblem
impl Copy for PaletteProblem
Source§impl Debug for PaletteProblem
impl Debug for PaletteProblem
impl Eq for PaletteProblem
Source§impl PartialEq for PaletteProblem
impl PartialEq for PaletteProblem
impl StructuralPartialEq for PaletteProblem
Auto Trait Implementations§
impl Freeze for PaletteProblem
impl RefUnwindSafe for PaletteProblem
impl Send for PaletteProblem
impl Sync for PaletteProblem
impl Unpin for PaletteProblem
impl UnsafeUnpin for PaletteProblem
impl UnwindSafe for PaletteProblem
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