pub enum WkbError {
InvalidFormat {
message: String,
},
InvalidByteOrder {
byte: u8,
},
UnsupportedGeometryType {
type_code: u32,
},
InvalidCoordinates {
message: String,
},
BufferTooShort {
expected: usize,
actual: usize,
},
InvalidRing {
message: String,
},
EncodingFailed {
message: String,
},
DecodingFailed {
message: String,
},
}Expand description
WKB encoding/decoding errors
Variants§
InvalidFormat
Invalid WKB format
InvalidByteOrder
Invalid byte order
UnsupportedGeometryType
Unsupported geometry type
InvalidCoordinates
Invalid coordinates
BufferTooShort
Buffer too short
InvalidRing
Invalid ring
EncodingFailed
Encoding error
DecodingFailed
Decoding error
Trait Implementations§
Source§impl Error for WkbError
impl Error for WkbError
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()
Auto Trait Implementations§
impl Freeze for WkbError
impl RefUnwindSafe for WkbError
impl Send for WkbError
impl Sync for WkbError
impl Unpin for WkbError
impl UnsafeUnpin for WkbError
impl UnwindSafe for WkbError
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