Enum flo_canvas::DecoderError
source · pub enum DecoderError {
InvalidCharacter(char),
MissingCharacter,
BadNumber,
UnknownColorType,
IsInErrorState,
NotReady,
}
Expand description
Possible error from the decoder
Variants§
InvalidCharacter(char)
The character was not valid for the current state of the decoder
MissingCharacter
The decoder tried to decode something before it had accepted all characters (probably a bug)
BadNumber
A number could not be parsed for some reason
UnknownColorType
A color had an unknown type
IsInErrorState
The decoder previously encountered an error and cannot continue
NotReady
The decoder was asked for a result when it was not ready (usually indicates an internal bug)
Trait Implementations§
source§impl Clone for DecoderError
impl Clone for DecoderError
source§fn clone(&self) -> DecoderError
fn clone(&self) -> DecoderError
Returns a copy of the value. Read more
1.0.0 · 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 DecoderError
impl Debug for DecoderError
source§impl PartialEq<DecoderError> for DecoderError
impl PartialEq<DecoderError> for DecoderError
source§fn eq(&self, other: &DecoderError) -> bool
fn eq(&self, other: &DecoderError) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.