pub enum Error {
}
Expand description
Errors as defines in RFC 4.0.0, extended with some custom errors of this wrapper library.
Variants
Failed
The operation failed but a more specific error is not available
Domain
Argument was outside of acceptable range (when a more specific error code is not available)
LatLonDomain
Latitude or longitude arguments were outside of acceptable range
ResDomain
Resolution argument was outside of acceptable range
CellInvalid
H3Index cell argument was not valid
DirectedEdgeInvalid
H3Index directed edge argument was not valid
UndirectedEdgeInvalid
H3Index undirected edge argument was not valid
VertexInvalid
H3Index vertex argument was not valid
Pentagon
Pentagon distortion was encountered which the algorithm could not handle it
DuplicateInput
Duplicate input was encountered in the arguments and the algorithm could not handle it
NotNeighbors
H3Index cell arguments were not neighbors
ResMismatch
H3Index cell arguments had incompatible resolutions
MemoryAlloc
Necessary memory allocation failed
MemoryBounds
Bounds of provided memory were not large enough
OptionInvalid
Mode or flags argument was not valid.
UnknownError(u32)
Unknown error code
DirectionInvalid(u8)
Invalid H3 direction
DecompressionError(String)
Implementations
Trait Implementations
sourceimpl Error for Error
impl Error for Error
1.30.0 · sourcefn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
The lower-level source of this error, if any. Read more
1.0.0 · sourcefn description(&self) -> &str
fn description(&self) -> &str
use the Display impl or to_string()
Auto Trait Implementations
impl RefUnwindSafe for Error
impl Send for Error
impl Sync for Error
impl Unpin for Error
impl UnwindSafe for Error
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more