pub struct FlattenTolerance(pub f64);Expand description
Maximum distance (model units) between a curve and its flattened polyline.
Tuple Fields§
§0: f64Implementations§
Source§impl FlattenTolerance
impl FlattenTolerance
Sourcepub fn for_screen(pixels_per_unit: f64, max_px: f64) -> Self
pub fn for_screen(pixels_per_unit: f64, max_px: f64) -> Self
Tolerance for drawing at pixels_per_unit screen scale with max_px deviation.
Trait Implementations§
Source§impl Clone for FlattenTolerance
impl Clone for FlattenTolerance
Source§fn clone(&self) -> FlattenTolerance
fn clone(&self) -> FlattenTolerance
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 FlattenTolerance
Source§impl Debug for FlattenTolerance
impl Debug for FlattenTolerance
Source§impl Default for FlattenTolerance
impl Default for FlattenTolerance
Source§impl<'de> Deserialize<'de> for FlattenTolerance
impl<'de> Deserialize<'de> for FlattenTolerance
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 FlattenTolerance
impl PartialEq for FlattenTolerance
Source§fn eq(&self, other: &FlattenTolerance) -> bool
fn eq(&self, other: &FlattenTolerance) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl Serialize for FlattenTolerance
impl Serialize for FlattenTolerance
impl StructuralPartialEq for FlattenTolerance
Auto Trait Implementations§
impl Freeze for FlattenTolerance
impl RefUnwindSafe for FlattenTolerance
impl Send for FlattenTolerance
impl Sync for FlattenTolerance
impl Unpin for FlattenTolerance
impl UnsafeUnpin for FlattenTolerance
impl UnwindSafe for FlattenTolerance
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