pub struct DisplacementBound(/* private fields */);Expand description
A finite, non-negative distance bound in model units.
Never NaN, so Eq is sound.
Implementations§
Source§impl DisplacementBound
impl DisplacementBound
Sourcepub const ZERO: DisplacementBound
pub const ZERO: DisplacementBound
No displacement.
Sourcepub fn new(value: f64) -> Option<DisplacementBound>
pub fn new(value: f64) -> Option<DisplacementBound>
The bound value; None unless it is finite and at least zero.
-0.0 becomes +0.0.
Sourcepub fn max(self, other: DisplacementBound) -> DisplacementBound
pub fn max(self, other: DisplacementBound) -> DisplacementBound
The larger of two bounds.
Trait Implementations§
Source§impl Clone for DisplacementBound
impl Clone for DisplacementBound
Source§fn clone(&self) -> DisplacementBound
fn clone(&self) -> DisplacementBound
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 DisplacementBound
Source§impl Debug for DisplacementBound
impl Debug for DisplacementBound
Source§impl Default for DisplacementBound
impl Default for DisplacementBound
Source§fn default() -> DisplacementBound
fn default() -> DisplacementBound
Returns the “default value” for a type. Read more
impl Eq for DisplacementBound
Source§impl PartialEq for DisplacementBound
impl PartialEq for DisplacementBound
Source§impl PartialOrd for DisplacementBound
impl PartialOrd for DisplacementBound
impl StructuralPartialEq for DisplacementBound
Auto Trait Implementations§
impl Freeze for DisplacementBound
impl RefUnwindSafe for DisplacementBound
impl Send for DisplacementBound
impl Sync for DisplacementBound
impl Unpin for DisplacementBound
impl UnsafeUnpin for DisplacementBound
impl UnwindSafe for DisplacementBound
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more