pub enum CopcError {
Io(Error),
Las(Error),
Laz(LasZipError),
CopcInfoNotFound,
LazVlrNotFound,
TruncatedHierarchyPage {
offset: u64,
},
NodeNotFound(VoxelKey),
ByteSource(Box<dyn Error + Send + Sync>),
}Expand description
Errors that can occur when reading a COPC file.
Variants§
Io(Error)
I/O error from the underlying byte source.
Las(Error)
Error parsing LAS header or VLR data.
Laz(LasZipError)
Error during LAZ decompression.
CopcInfoNotFound
The required COPC info VLR was not found.
LazVlrNotFound
The required LAZ VLR was not found.
TruncatedHierarchyPage
A hierarchy page was shorter than expected.
NodeNotFound(VoxelKey)
The requested node is not in the loaded hierarchy.
ByteSource(Box<dyn Error + Send + Sync>)
Custom error from a ByteSource implementation.
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()
Source§impl From<LasZipError> for CopcError
impl From<LasZipError> for CopcError
Source§fn from(source: LasZipError) -> Self
fn from(source: LasZipError) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for CopcError
impl !RefUnwindSafe for CopcError
impl Send for CopcError
impl Sync for CopcError
impl Unpin for CopcError
impl UnsafeUnpin for CopcError
impl !UnwindSafe 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