pub struct FitConstraints {
pub axis: Option<Axis>,
pub radius: Option<f64>,
}Expand description
What a fit holds fixed.
Fields§
§axis: Option<Axis>The surface’s axis, as a line (its sense is free): a cylinder’s, a cone’s or a torus’s. A plane and a sphere have none to fix.
radius: Option<f64>A cylinder’s or a sphere’s radius, or a torus’s tube (minor) radius. A plane has none, and a cone’s changes along it.
Trait Implementations§
Source§impl Clone for FitConstraints
impl Clone for FitConstraints
impl Copy for FitConstraints
Source§impl Debug for FitConstraints
impl Debug for FitConstraints
Source§impl Default for FitConstraints
impl Default for FitConstraints
Source§impl PartialEq for FitConstraints
impl PartialEq for FitConstraints
impl StructuralPartialEq for FitConstraints
Auto Trait Implementations§
impl Freeze for FitConstraints
impl RefUnwindSafe for FitConstraints
impl Send for FitConstraints
impl Sync for FitConstraints
impl Unpin for FitConstraints
impl UnsafeUnpin for FitConstraints
impl UnwindSafe for FitConstraints
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.