pub struct EmptyPointError;Expand description
Conversion would lose an empty point or empty multipoint member.
use geometry_model::{DynGeometry, EmptyPointError, GeometryValue};
let points = GeometryValue::<geometry_model::Point2D<f64>>::MultiPoint(vec![None]);
assert_eq!(DynGeometry::try_from(points), Err(EmptyPointError));Trait Implementations§
Source§impl Clone for EmptyPointError
impl Clone for EmptyPointError
impl Copy for EmptyPointError
Source§impl Debug for EmptyPointError
impl Debug for EmptyPointError
Source§impl Display for EmptyPointError
impl Display for EmptyPointError
impl Eq for EmptyPointError
Source§impl Error for EmptyPointError
Available on crate feature std only.
impl Error for EmptyPointError
Available on crate feature
std only.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()
Source§impl PartialEq for EmptyPointError
impl PartialEq for EmptyPointError
impl StructuralPartialEq for EmptyPointError
Auto Trait Implementations§
impl Freeze for EmptyPointError
impl RefUnwindSafe for EmptyPointError
impl Send for EmptyPointError
impl Sync for EmptyPointError
impl Unpin for EmptyPointError
impl UnsafeUnpin for EmptyPointError
impl UnwindSafe for EmptyPointError
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