pub struct ShapeModifyConfig {
pub simplify_tolerance: Option<f32>,
pub offset: Option<f32>,
}
Fields§
§simplify_tolerance: Option<f32>
Maximum deviation of the simplified polygon with respect to the original polygon area as a ratio.
If undefined, no simplification is performed.
See simplify_shape
offset: Option<f32>
Offset by which to inflate or deflate the polygon.
If undefined, no offset is applied.
See offset_shape
Trait Implementations§
Source§impl Clone for ShapeModifyConfig
impl Clone for ShapeModifyConfig
Source§fn clone(&self) -> ShapeModifyConfig
fn clone(&self) -> ShapeModifyConfig
Returns a copy of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreSource§impl Debug for ShapeModifyConfig
impl Debug for ShapeModifyConfig
Source§impl Default for ShapeModifyConfig
impl Default for ShapeModifyConfig
Source§fn default() -> ShapeModifyConfig
fn default() -> ShapeModifyConfig
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for ShapeModifyConfig
impl<'de> Deserialize<'de> for ShapeModifyConfig
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl PartialEq for ShapeModifyConfig
impl PartialEq for ShapeModifyConfig
Source§impl Serialize for ShapeModifyConfig
impl Serialize for ShapeModifyConfig
impl Copy for ShapeModifyConfig
impl StructuralPartialEq for ShapeModifyConfig
Auto Trait Implementations§
impl Freeze for ShapeModifyConfig
impl RefUnwindSafe for ShapeModifyConfig
impl Send for ShapeModifyConfig
impl Sync for ShapeModifyConfig
impl Unpin for ShapeModifyConfig
impl UnwindSafe for ShapeModifyConfig
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<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left
is true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left(&self)
returns true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read more