pub enum GeometryError {
Empty,
UnsupportedVersion(u8),
Truncated,
VarintTooLong,
TrailingBytes,
MissingExterior,
}Expand description
A malformed or unsupported geometry blob.
Variants§
Empty
The blob was empty.
UnsupportedVersion(u8)
The blob declares a version this reader does not implement.
Truncated
The blob ended in the middle of a value.
VarintTooLong
A varint ran past 64 bits.
TrailingBytes
Bytes remained after the last ring.
MissingExterior
The first ring was not an exterior.
Trait Implementations§
Source§impl Clone for GeometryError
impl Clone for GeometryError
Source§fn clone(&self) -> GeometryError
fn clone(&self) -> GeometryError
Returns a duplicate of the value. Read more
1.0.0§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for GeometryError
impl Debug for GeometryError
Source§impl Display for GeometryError
impl Display for GeometryError
Source§impl Error for GeometryError
impl Error for GeometryError
1.30.0§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§fn description(&self) -> &str
fn description(&self) -> &str
👎Deprecated since 1.42.0: use the Display impl or to_string()
Source§impl From<GeometryError> for RegionDbError
impl From<GeometryError> for RegionDbError
Source§fn from(error: GeometryError) -> Self
fn from(error: GeometryError) -> Self
Converts to this type from the input type.
Source§impl PartialEq for GeometryError
impl PartialEq for GeometryError
impl Eq for GeometryError
impl StructuralPartialEq for GeometryError
Auto Trait Implementations§
impl Freeze for GeometryError
impl RefUnwindSafe for GeometryError
impl Send for GeometryError
impl Sync for GeometryError
impl Unpin for GeometryError
impl UnwindSafe for GeometryError
Blanket Implementations§
§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§unsafe fn clone_to_uninit(&self, dest: *mut u8)
unsafe fn clone_to_uninit(&self, dest: *mut u8)
🔬This is a nightly-only experimental API. (
clone_to_uninit)