pub struct ConstraintMask {
pub origin_or_center: bool,
pub axis_or_normal: bool,
pub radius: bool,
pub major_radius: bool,
pub angle: bool,
}Expand description
Parameter-level constraints. Vector fields constrain all three components; axis origins/centers still use the conventional along-axis gauge freedom.
Fields§
§origin_or_center: boolFix the plane origin, sphere/torus center, cylinder axis origin, or cone apex.
axis_or_normal: boolFix the axis or normal direction.
radius: boolFix the ordinary radius or torus minor radius.
major_radius: boolFix the torus major radius.
angle: boolFix the cone half-angle.
Trait Implementations§
Source§impl Clone for ConstraintMask
impl Clone for ConstraintMask
Source§fn clone(&self) -> ConstraintMask
fn clone(&self) -> ConstraintMask
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 ConstraintMask
Source§impl Debug for ConstraintMask
impl Debug for ConstraintMask
Source§impl Default for ConstraintMask
impl Default for ConstraintMask
Source§fn default() -> ConstraintMask
fn default() -> ConstraintMask
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for ConstraintMask
impl<'de> Deserialize<'de> for ConstraintMask
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
impl Eq for ConstraintMask
Source§impl PartialEq for ConstraintMask
impl PartialEq for ConstraintMask
Source§impl Serialize for ConstraintMask
impl Serialize for ConstraintMask
impl StructuralPartialEq for ConstraintMask
Auto Trait Implementations§
impl Freeze for ConstraintMask
impl RefUnwindSafe for ConstraintMask
impl Send for ConstraintMask
impl Sync for ConstraintMask
impl Unpin for ConstraintMask
impl UnsafeUnpin for ConstraintMask
impl UnwindSafe for ConstraintMask
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