Enum kolorwheel::ParseError
source · pub enum ParseError {
InvalidLength(usize),
InvalidDigit(u8),
}
Expand description
Possible errors when parsing HslColor
from hex &str
Variants§
InvalidLength(usize)
Only RRGGBB
or RGB
variants are accepted, with optional “#
” prefix.
Reporting invalid length value
InvalidDigit(u8)
Only hexadecimal digits can be used, any case. Reporting invalid character (first one)
Trait Implementations§
Auto Trait Implementations§
impl RefUnwindSafe for ParseError
impl Send for ParseError
impl Sync for ParseError
impl Unpin for ParseError
impl UnwindSafe for ParseError
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