pub struct JointLimit { /* private fields */ }Expand description
Optional descriptive joint limits.
Implementations§
Source§impl JointLimit
impl JointLimit
Sourcepub fn new(
minimum: Option<f64>,
maximum: Option<f64>,
) -> Result<Self, JointLimitError>
pub fn new( minimum: Option<f64>, maximum: Option<f64>, ) -> Result<Self, JointLimitError>
Creates optional joint limits from finite numeric bounds.
§Errors
Returns JointLimitError::NonFinite when a bound is not finite, or
JointLimitError::Inverted when the minimum is greater than the maximum.
Trait Implementations§
Source§impl Clone for JointLimit
impl Clone for JointLimit
Source§fn clone(&self) -> JointLimit
fn clone(&self) -> JointLimit
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 moreSource§impl Debug for JointLimit
impl Debug for JointLimit
Source§impl PartialEq for JointLimit
impl PartialEq for JointLimit
Source§fn eq(&self, other: &JointLimit) -> bool
fn eq(&self, other: &JointLimit) -> bool
Tests for
self and other values to be equal, and is used by ==.impl Copy for JointLimit
impl StructuralPartialEq for JointLimit
Auto Trait Implementations§
impl Freeze for JointLimit
impl RefUnwindSafe for JointLimit
impl Send for JointLimit
impl Sync for JointLimit
impl Unpin for JointLimit
impl UnsafeUnpin for JointLimit
impl UnwindSafe for JointLimit
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