pub struct Outline {
pub play: f64,
pub tolerance: f64,
pub round_below: f64,
pub fill_below: f64,
}Expand description
How an outline is fitted around a silhouette.
Fields§
§play: f64The least clearance from the silhouette. Negative for an outline inside it, a press fit.
tolerance: f64Half the width of the band: every point of the outline lies between
play and play + 2 tolerance outside the silhouette.
round_below: f64Corners turning by less than this, in radians, are rounded by the largest tangent arc found to fit the band.
fill_below: f64Holes and notches no wider than this across, by their largest inscribed circle, are filled before the fit, and the band is taken about the silhouette so filled. Zero, the true silhouette, fills nothing. See Filling.
Trait Implementations§
impl Copy for Outline
impl StructuralPartialEq for Outline
Auto Trait Implementations§
impl Freeze for Outline
impl RefUnwindSafe for Outline
impl Send for Outline
impl Sync for Outline
impl Unpin for Outline
impl UnsafeUnpin for Outline
impl UnwindSafe for Outline
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,
impl<T> Scalar for T
§impl<SS, SP> SupersetOf<SS> for SPwhere
SS: SubsetOf<SP>,
impl<SS, SP> SupersetOf<SS> for SPwhere
SS: SubsetOf<SP>,
§fn to_subset(&self) -> Option<SS>
fn to_subset(&self) -> Option<SS>
The inverse inclusion map: attempts to construct
self from the equivalent element of its
superset. Read more§fn is_in_subset(&self) -> bool
fn is_in_subset(&self) -> bool
Checks if
self is actually part of its subset T (and can be converted to it).§fn to_subset_unchecked(&self) -> SS
fn to_subset_unchecked(&self) -> SS
Use with care! Same as
self.to_subset but without any property checks. Always succeeds.§fn from_subset(element: &SS) -> SP
fn from_subset(element: &SS) -> SP
The inclusion map: converts
self to the equivalent element of its superset.