pub enum LepccError {
Show 13 variants
Failed(String),
WrongParam(String),
WrongVersion {
found: u16,
expected: u16,
},
WrongChecksum {
expected: u32,
found: u32,
},
NotLepcc(String),
NotClusterRgb(String),
NotIntensity(String),
NotFlagBytes(String),
BufferTooSmall {
needed: usize,
provided: usize,
},
OutArrayTooSmall {
needed: usize,
provided: usize,
},
QuantizeVirtualRasterTooBig,
QuantizeIndexOutOfRange {
index: i64,
limit: usize,
},
IoError(String),
}Expand description
Error type for LEPCC operations
Variants§
Failed(String)
Generic failure
WrongParam(String)
Wrong parameter
WrongVersion
Wrong version
WrongChecksum
Wrong checksum
NotLepcc(String)
Not valid LEPCC data
NotClusterRgb(String)
NotIntensity(String)
NotFlagBytes(String)
BufferTooSmall
Buffer too small
OutArrayTooSmall
Output array too small
QuantizeVirtualRasterTooBig
Quantize virtual raster too big
QuantizeIndexOutOfRange
Quantize index out of range
IoError(String)
I/O error
Trait Implementations§
Source§impl Clone for LepccError
impl Clone for LepccError
Source§fn clone(&self) -> LepccError
fn clone(&self) -> LepccError
Returns a duplicate 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 LepccError
impl Debug for LepccError
Source§impl Display for LepccError
impl Display for LepccError
Source§impl Error for LepccError
impl Error for LepccError
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 From<ErrCode> for LepccError
impl From<ErrCode> for LepccError
Source§impl From<Error> for LepccError
impl From<Error> for LepccError
Source§impl PartialEq for LepccError
impl PartialEq for LepccError
Source§impl TryFrom<LepccError> for ErrCode
impl TryFrom<LepccError> for ErrCode
impl StructuralPartialEq for LepccError
Auto Trait Implementations§
impl Freeze for LepccError
impl RefUnwindSafe for LepccError
impl Send for LepccError
impl Sync for LepccError
impl Unpin for LepccError
impl UnsafeUnpin for LepccError
impl UnwindSafe for LepccError
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