pub struct CartesianPerimeter;Expand description
Cartesian perimeter: sum of Pythagorean distances between consecutive points of a ring, plus the closing edge when the ring is open.
Separate from CartesianLength because Rust’s coherence rules
cannot prove that a single type does not implement both
Linestring and Ring; splitting the strategy keeps the
per-tag dispatch disjoint at the impl level.
Trait Implementations§
Source§impl Clone for CartesianPerimeter
impl Clone for CartesianPerimeter
Source§fn clone(&self) -> CartesianPerimeter
fn clone(&self) -> CartesianPerimeter
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Copy for CartesianPerimeter
Source§impl Debug for CartesianPerimeter
impl Debug for CartesianPerimeter
Source§impl Default for CartesianPerimeter
impl Default for CartesianPerimeter
Source§fn default() -> CartesianPerimeter
fn default() -> CartesianPerimeter
Returns the “default value” for a type. Read more
Source§impl<R> LengthStrategy<R> for CartesianPerimeterwhere
R: Ring,
<R::Point as Point>::Cs: CoordinateSystem,
<<R::Point as Point>::Cs as CoordinateSystem>::Family: SameAs<CartesianFamily>,
impl<R> LengthStrategy<R> for CartesianPerimeterwhere
R: Ring,
<R::Point as Point>::Cs: CoordinateSystem,
<<R::Point as Point>::Cs as CoordinateSystem>::Family: SameAs<CartesianFamily>,
Auto Trait Implementations§
impl Freeze for CartesianPerimeter
impl RefUnwindSafe for CartesianPerimeter
impl Send for CartesianPerimeter
impl Sync for CartesianPerimeter
impl Unpin for CartesianPerimeter
impl UnsafeUnpin for CartesianPerimeter
impl UnwindSafe for CartesianPerimeter
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