Struct Dimension
pub struct Dimension(/* private fields */);Expand description
A positive spatial dimension count.
Implementations§
§impl Dimension
impl Dimension
pub const fn new_unchecked(value: usize) -> Dimension
pub const fn new_unchecked(value: usize) -> Dimension
Creates a dimension count without checking whether it is positive.
pub const fn is_spatial(self) -> bool
pub const fn is_spatial(self) -> bool
Returns true for dimensions commonly used as spatial geometry.
Trait Implementations§
§impl Ord for Dimension
impl Ord for Dimension
§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