pub struct Extent<T, const D: usize> { /* private fields */ }
num_geom
only.Expand description
An orthogonal extension in D
-space without a coordinate position.
It has the implied shape of an orthotope (a generalized rectangle).
Implementations§
source§impl<const D: usize> Extent<i8, D>
impl<const D: usize> Extent<i8, D>
sourcepub const fn c_measure(self) -> i8 ⓘ
pub const fn c_measure(self) -> i8 ⓘ
Returns the internal measure, the product of the extents.
It’s equivalent to length, area, and volume in 1, 2 and 3 dimensions.
sourcepub const fn c_boundary(self) -> i8 ⓘ
pub const fn c_boundary(self) -> i8 ⓘ
Returns the external boundary, the sum of the extents.
It’s equivalent to 2, perimeter and surface area in 1, 2 and 3 dimensions.
source§impl<const D: usize> Extent<i16, D>
impl<const D: usize> Extent<i16, D>
sourcepub const fn c_measure(self) -> i16 ⓘ
pub const fn c_measure(self) -> i16 ⓘ
Returns the internal measure, the product of the extents.
It’s equivalent to length, area, and volume in 1, 2 and 3 dimensions.
sourcepub const fn c_boundary(self) -> i16 ⓘ
pub const fn c_boundary(self) -> i16 ⓘ
Returns the external boundary, the sum of the extents.
It’s equivalent to 2, perimeter and surface area in 1, 2 and 3 dimensions.
source§impl<const D: usize> Extent<i32, D>
impl<const D: usize> Extent<i32, D>
sourcepub const fn c_measure(self) -> i32 ⓘ
pub const fn c_measure(self) -> i32 ⓘ
Returns the internal measure, the product of the extents.
It’s equivalent to length, area, and volume in 1, 2 and 3 dimensions.
sourcepub const fn c_boundary(self) -> i32 ⓘ
pub const fn c_boundary(self) -> i32 ⓘ
Returns the external boundary, the sum of the extents.
It’s equivalent to 2, perimeter and surface area in 1, 2 and 3 dimensions.
source§impl<const D: usize> Extent<i64, D>
impl<const D: usize> Extent<i64, D>
sourcepub const fn c_measure(self) -> i64 ⓘ
pub const fn c_measure(self) -> i64 ⓘ
Returns the internal measure, the product of the extents.
It’s equivalent to length, area, and volume in 1, 2 and 3 dimensions.
sourcepub const fn c_boundary(self) -> i64 ⓘ
pub const fn c_boundary(self) -> i64 ⓘ
Returns the external boundary, the sum of the extents.
It’s equivalent to 2, perimeter and surface area in 1, 2 and 3 dimensions.
source§impl<const D: usize> Extent<i128, D>
impl<const D: usize> Extent<i128, D>
sourcepub const fn c_measure(self) -> i128 ⓘ
pub const fn c_measure(self) -> i128 ⓘ
Returns the internal measure, the product of the extents.
It’s equivalent to length, area, and volume in 1, 2 and 3 dimensions.
sourcepub const fn c_boundary(self) -> i128 ⓘ
pub const fn c_boundary(self) -> i128 ⓘ
Returns the external boundary, the sum of the extents.
It’s equivalent to 2, perimeter and surface area in 1, 2 and 3 dimensions.
source§impl<const D: usize> Extent<isize, D>
impl<const D: usize> Extent<isize, D>
sourcepub const fn c_measure(self) -> isize ⓘ
pub const fn c_measure(self) -> isize ⓘ
Returns the internal measure, the product of the extents.
It’s equivalent to length, area, and volume in 1, 2 and 3 dimensions.
sourcepub const fn c_boundary(self) -> isize ⓘ
pub const fn c_boundary(self) -> isize ⓘ
Returns the external boundary, the sum of the extents.
It’s equivalent to 2, perimeter and surface area in 1, 2 and 3 dimensions.
source§impl<const D: usize> Extent<u8, D>
impl<const D: usize> Extent<u8, D>
sourcepub const fn c_measure(self) -> u8 ⓘ
pub const fn c_measure(self) -> u8 ⓘ
Returns the internal measure, the product of the extents.
It’s equivalent to length, area, and volume in 1, 2 and 3 dimensions.
sourcepub const fn c_boundary(self) -> u8 ⓘ
pub const fn c_boundary(self) -> u8 ⓘ
Returns the external boundary, the sum of the extents.
It’s equivalent to 2, perimeter and surface area in 1, 2 and 3 dimensions.
source§impl<const D: usize> Extent<u16, D>
impl<const D: usize> Extent<u16, D>
sourcepub const fn c_measure(self) -> u16 ⓘ
pub const fn c_measure(self) -> u16 ⓘ
Returns the internal measure, the product of the extents.
It’s equivalent to length, area, and volume in 1, 2 and 3 dimensions.
sourcepub const fn c_boundary(self) -> u16 ⓘ
pub const fn c_boundary(self) -> u16 ⓘ
Returns the external boundary, the sum of the extents.
It’s equivalent to 2, perimeter and surface area in 1, 2 and 3 dimensions.
source§impl<const D: usize> Extent<u32, D>
impl<const D: usize> Extent<u32, D>
sourcepub const fn c_measure(self) -> u32 ⓘ
pub const fn c_measure(self) -> u32 ⓘ
Returns the internal measure, the product of the extents.
It’s equivalent to length, area, and volume in 1, 2 and 3 dimensions.
sourcepub const fn c_boundary(self) -> u32 ⓘ
pub const fn c_boundary(self) -> u32 ⓘ
Returns the external boundary, the sum of the extents.
It’s equivalent to 2, perimeter and surface area in 1, 2 and 3 dimensions.
source§impl<const D: usize> Extent<u64, D>
impl<const D: usize> Extent<u64, D>
sourcepub const fn c_measure(self) -> u64 ⓘ
pub const fn c_measure(self) -> u64 ⓘ
Returns the internal measure, the product of the extents.
It’s equivalent to length, area, and volume in 1, 2 and 3 dimensions.
sourcepub const fn c_boundary(self) -> u64 ⓘ
pub const fn c_boundary(self) -> u64 ⓘ
Returns the external boundary, the sum of the extents.
It’s equivalent to 2, perimeter and surface area in 1, 2 and 3 dimensions.
source§impl<const D: usize> Extent<u128, D>
impl<const D: usize> Extent<u128, D>
sourcepub const fn c_measure(self) -> u128 ⓘ
pub const fn c_measure(self) -> u128 ⓘ
Returns the internal measure, the product of the extents.
It’s equivalent to length, area, and volume in 1, 2 and 3 dimensions.
sourcepub const fn c_boundary(self) -> u128 ⓘ
pub const fn c_boundary(self) -> u128 ⓘ
Returns the external boundary, the sum of the extents.
It’s equivalent to 2, perimeter and surface area in 1, 2 and 3 dimensions.
source§impl<const D: usize> Extent<usize, D>
impl<const D: usize> Extent<usize, D>
sourcepub const fn c_measure(self) -> usize ⓘ
pub const fn c_measure(self) -> usize ⓘ
Returns the internal measure, the product of the extents.
It’s equivalent to length, area, and volume in 1, 2 and 3 dimensions.
sourcepub const fn c_boundary(self) -> usize ⓘ
pub const fn c_boundary(self) -> usize ⓘ
Returns the external boundary, the sum of the extents.
It’s equivalent to 2, perimeter and surface area in 1, 2 and 3 dimensions.
source§impl<const D: usize> Extent<f32, D>
impl<const D: usize> Extent<f32, D>
source§impl<const D: usize> Extent<f64, D>
impl<const D: usize> Extent<f64, D>
Trait Implementations§
source§impl<T: ConstDefault, const D: usize> ConstDefault for Extent<T, D>
impl<T: ConstDefault, const D: usize> ConstDefault for Extent<T, D>
source§impl<T: Ord, const D: usize> Ord for Extent<T, D>
impl<T: Ord, const D: usize> Ord for Extent<T, D>
source§impl<T: PartialOrd, const D: usize> PartialOrd for Extent<T, D>
impl<T: PartialOrd, const D: usize> PartialOrd for Extent<T, D>
impl<T: Copy, const D: usize> Copy for Extent<T, D>
impl<T: Eq, const D: usize> Eq for Extent<T, D>
Auto Trait Implementations§
impl<T, const D: usize> Freeze for Extent<T, D>where
T: Freeze,
impl<T, const D: usize> RefUnwindSafe for Extent<T, D>where
T: RefUnwindSafe,
impl<T, const D: usize> Send for Extent<T, D>where
T: Send,
impl<T, const D: usize> Sync for Extent<T, D>where
T: Sync,
impl<T, const D: usize> Unpin for Extent<T, D>where
T: Unpin,
impl<T, const D: usize> UnwindSafe for Extent<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
source§impl<T> ByteSized for T
impl<T> ByteSized for T
source§const BYTE_ALIGN: usize = _
const BYTE_ALIGN: usize = _
source§const LITTLE_ENDIAN: bool = true
const LITTLE_ENDIAN: bool = true
source§const BIG_ENDIAN: bool = false
const BIG_ENDIAN: bool = false
source§fn byte_align(&self) -> usize ⓘ
fn byte_align(&self) -> usize ⓘ
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)
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)
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 = _
source§fn mem_needs_drop(&self) -> bool
fn mem_needs_drop(&self) -> bool
true
if dropping values of this type matters. Read moresource§fn mem_forget(self)where
Self: Sized,
fn mem_forget(self)where
Self: Sized,
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] ⓘ
unsafe_slice
only.