pub struct Point<T, const D: usize> {
pub coords: [T; D],
}
Available on crate feature
num_geom
only.Expand description
A coordinate position in D
-space without extent.
Fields§
§coords: [T; D]
The D-dimensional coordinates.
Implementations§
Trait Implementations§
source§impl<T: ConstDefault, const D: usize> ConstDefault for Point<T, D>
impl<T: ConstDefault, const D: usize> ConstDefault for Point<T, D>
source§impl<T: Ord, const D: usize> Ord for Point<T, D>
impl<T: Ord, const D: usize> Ord for Point<T, D>
source§impl<T: PartialOrd, const D: usize> PartialOrd for Point<T, D>
impl<T: PartialOrd, const D: usize> PartialOrd for Point<T, D>
impl<T: Copy, const D: usize> Copy for Point<T, D>
impl<T: Eq, const D: usize> Eq for Point<T, D>
Auto Trait Implementations§
impl<T, const D: usize> Freeze for Point<T, D>where
T: Freeze,
impl<T, const D: usize> RefUnwindSafe for Point<T, D>where
T: RefUnwindSafe,
impl<T, const D: usize> Send for Point<T, D>where
T: Send,
impl<T, const D: usize> Sync for Point<T, D>where
T: Sync,
impl<T, const D: usize> Unpin for Point<T, D>where
T: Unpin,
impl<T, const D: usize> UnwindSafe for Point<T, D>where
T: UnwindSafe,
Blanket Implementations§
source§impl<T> Also for T
impl<T> Also for T
source§impl<T, Res> Apply<Res> for Twhere
T: ?Sized,
impl<T, Res> Apply<Res> for Twhere
T: ?Sized,
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
source§impl<T> ByteSized for T
impl<T> ByteSized for T
source§const BYTE_ALIGN: usize = _
const BYTE_ALIGN: usize = _
The alignment of this type in bytes.
source§const LITTLE_ENDIAN: bool = true
const LITTLE_ENDIAN: bool = true
True if the system’s architecture is little-endian.
source§const BIG_ENDIAN: bool = false
const BIG_ENDIAN: bool = false
True if the system’s architecture is big-endian.
source§fn byte_align(&self) -> usize ⓘ
fn byte_align(&self) -> usize ⓘ
Returns the alignment of this type in bytes.
source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§default unsafe fn clone_to_uninit(&self, dst: *mut T)
default unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)source§impl<T> CloneToUninit for Twhere
T: Copy,
impl<T> CloneToUninit for Twhere
T: Copy,
source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
source§impl<T> ExtAny for T
impl<T> ExtAny for T
source§fn as_any_mut(&mut self) -> &mut dyn Anywhere
Self: Sized,
fn as_any_mut(&mut self) -> &mut dyn Anywhere
Self: Sized,
source§impl<T> ExtMem for Twhere
T: ?Sized,
impl<T> ExtMem for Twhere
T: ?Sized,
source§const NEEDS_DROP: bool = _
const NEEDS_DROP: bool = _
Know whether dropping values of this type matters, in compile-time.
source§fn mem_needs_drop(&self) -> bool
fn mem_needs_drop(&self) -> bool
Returns
true
if dropping values of this type matters. Read moresource§fn mem_forget(self)where
Self: Sized,
fn mem_forget(self)where
Self: Sized,
Forgets about
self
without running its destructor. Read moresource§fn mem_replace(&mut self, other: Self) -> Selfwhere
Self: Sized,
fn mem_replace(&mut self, other: Self) -> Selfwhere
Self: Sized,
source§fn mem_as_bytes(&self) -> &[u8] ⓘ
fn mem_as_bytes(&self) -> &[u8] ⓘ
Available on crate feature
unsafe_slice
only.