pub struct DegreeOfFreedom(/* private fields */);Expand description
A non-zero degree-of-freedom count.
Implementations§
Source§impl DegreeOfFreedom
impl DegreeOfFreedom
Sourcepub const fn new(value: usize) -> Result<Self, DegreeOfFreedomError>
pub const fn new(value: usize) -> Result<Self, DegreeOfFreedomError>
Creates a non-zero degree-of-freedom count.
§Errors
Returns DegreeOfFreedomError::Zero when value is zero.
Trait Implementations§
Source§impl Clone for DegreeOfFreedom
impl Clone for DegreeOfFreedom
Source§fn clone(&self) -> DegreeOfFreedom
fn clone(&self) -> DegreeOfFreedom
Returns a duplicate of the value. Read more
1.0.0 · 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 DegreeOfFreedom
impl Debug for DegreeOfFreedom
Source§impl Display for DegreeOfFreedom
impl Display for DegreeOfFreedom
Source§impl Hash for DegreeOfFreedom
impl Hash for DegreeOfFreedom
Source§impl Ord for DegreeOfFreedom
impl Ord for DegreeOfFreedom
Source§fn cmp(&self, other: &DegreeOfFreedom) -> Ordering
fn cmp(&self, other: &DegreeOfFreedom) -> Ordering
1.21.0 · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
Source§impl PartialEq for DegreeOfFreedom
impl PartialEq for DegreeOfFreedom
Source§impl PartialOrd for DegreeOfFreedom
impl PartialOrd for DegreeOfFreedom
Source§impl TryFrom<usize> for DegreeOfFreedom
impl TryFrom<usize> for DegreeOfFreedom
impl Copy for DegreeOfFreedom
impl Eq for DegreeOfFreedom
impl StructuralPartialEq for DegreeOfFreedom
Auto Trait Implementations§
impl Freeze for DegreeOfFreedom
impl RefUnwindSafe for DegreeOfFreedom
impl Send for DegreeOfFreedom
impl Sync for DegreeOfFreedom
impl Unpin for DegreeOfFreedom
impl UnsafeUnpin for DegreeOfFreedom
impl UnwindSafe for DegreeOfFreedom
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