pub enum EwktError {
Grammar(String),
Domain(PointDomainError),
}Expand description
Why an EWKT string was refused: the text does not match the grammar, or
it does and the coordinates are outside the stored domain. One typed
error so a caller can tell the two halves apart; Display is the text
every surface already shows.
Variants§
Grammar(String)
The text does not match the EWKT grammar.
Domain(PointDomainError)
The coordinates are outside the stored domain.
Trait Implementations§
impl Eq for EwktError
Source§impl Error for EwktError
impl Error for EwktError
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()
impl StructuralPartialEq for EwktError
Auto Trait Implementations§
impl Forget for EwktError
impl Freeze for EwktError
impl Move for EwktError
impl RefUnwindSafe for EwktError
impl Send for EwktErrorwhere
RawVecInner: Send,
impl Sync for EwktErrorwhere
RawVecInner: Sync,
impl Unpin for EwktError
impl UnsafeUnpin for EwktError
impl UnwindSafe for EwktErrorwhere
RawVecInner: UnwindSafe,
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.