pub enum CopcError {
InvalidFormat(String),
UnsupportedVersion(u8, u8),
Io(Error),
UnsupportedLazFormat {
format_id: u8,
},
LazDecoderError(String),
}Expand description
Errors that can occur when parsing COPC / LAS files.
Variants§
InvalidFormat(String)
The binary data does not conform to the expected format.
UnsupportedVersion(u8, u8)
Unsupported LAS version encountered.
Io(Error)
An I/O error occurred.
UnsupportedLazFormat
A LAZ point format that this crate cannot yet decompress was requested.
Slice 24 W3 ships PF0 and PF1 only. PF6/7/8 (the COPC mandate) are deferred to a follow-up slice; until then, this variant flags them so callers can fail gracefully instead of producing garbage points.
LazDecoderError(String)
An internal LASzip decoder invariant was violated (malformed compressed stream).
Trait Implementations§
Source§impl Error for CopcError
impl Error for CopcError
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()
Auto Trait Implementations§
impl !RefUnwindSafe for CopcError
impl !UnwindSafe for CopcError
impl Freeze for CopcError
impl Send for CopcError
impl Sync for CopcError
impl Unpin for CopcError
impl UnsafeUnpin for CopcError
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