pub struct Dimension(/* private fields */);Expand description
A positive spatial dimension count.
Implementations§
Source§impl Dimension
impl Dimension
Sourcepub const fn new_unchecked(value: usize) -> Self
pub const fn new_unchecked(value: usize) -> Self
Creates a dimension count without checking whether it is positive.
Sourcepub const fn is_spatial(self) -> bool
pub const fn is_spatial(self) -> bool
Returns true for dimensions commonly used as spatial geometry.
Trait Implementations§
Source§impl Ord for Dimension
impl Ord for Dimension
1.21.0 (const: unstable) · 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 PartialOrd for Dimension
impl PartialOrd for Dimension
impl Copy for Dimension
impl Eq for Dimension
impl StructuralPartialEq for Dimension
Auto Trait Implementations§
impl Freeze for Dimension
impl RefUnwindSafe for Dimension
impl Send for Dimension
impl Sync for Dimension
impl Unpin for Dimension
impl UnsafeUnpin for Dimension
impl UnwindSafe for Dimension
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