pub trait ClipperInt {
// Required methods
fn difference<T: ToOwnedPolygonInt + ClosedPoly + ?Sized>(
&self,
other: &T,
) -> MultiPolygon<i64>;
fn intersection<T: ToOwnedPolygonInt + ClosedPoly + ?Sized>(
&self,
other: &T,
) -> MultiPolygon<i64>;
fn union<T: ToOwnedPolygonInt + ClosedPoly + ?Sized>(
&self,
other: &T,
) -> MultiPolygon<i64>;
fn xor<T: ToOwnedPolygonInt + ClosedPoly + ?Sized>(
&self,
other: &T,
) -> MultiPolygon<i64>;
fn offset(
&self,
delta: f64,
join_type: JoinType,
end_type: EndType,
) -> MultiPolygon<i64>;
}Expand description
This trait defines the boolean and offset operations on polygons, for integer coordinate types
There is no factor, since polygons are already in integer form
Required Methods§
fn difference<T: ToOwnedPolygonInt + ClosedPoly + ?Sized>( &self, other: &T, ) -> MultiPolygon<i64>
fn intersection<T: ToOwnedPolygonInt + ClosedPoly + ?Sized>( &self, other: &T, ) -> MultiPolygon<i64>
fn union<T: ToOwnedPolygonInt + ClosedPoly + ?Sized>( &self, other: &T, ) -> MultiPolygon<i64>
fn xor<T: ToOwnedPolygonInt + ClosedPoly + ?Sized>( &self, other: &T, ) -> MultiPolygon<i64>
fn offset( &self, delta: f64, join_type: JoinType, end_type: EndType, ) -> MultiPolygon<i64>
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.