devela::all

Type Alias Extent3d

Source
pub type Extent3d<T> = Extent<T, 3>;
Available on crate feature geom only.
Expand description

A 3-dimensional Extent.

Aliased Type§

struct Extent3d<T> { /* private fields */ }

Implementations§

Source§

impl<T> Extent3d<T>

Source

pub const fn x(self) -> T
where T: Copy,

Returns a copy of the first dimension x.

Source

pub const fn y(self) -> T
where T: Copy,

Returns a copy of the second dimension y.

Source

pub const fn z(self) -> T
where T: Copy,

Returns a copy of the third dimension z.

Source

pub const fn x_ref(&self) -> &T

Returns a shared reference to the first dimension x.

Source

pub const fn y_ref(&self) -> &T

Returns a shared reference to the second dimension y.

Source

pub const fn z_ref(&self) -> &T

Returns a shared reference to the third dimension z.

Source

pub fn x_mut(&mut self) -> &mut T

Returns an exclusive reference to the first dimension x.

Source

pub fn y_mut(&mut self) -> &mut T

Returns an exclusive reference to the second dimension y.

Source

pub fn z_mut(&mut self) -> &mut T

Returns an exclusive reference to the third dimension z.

Source

pub fn is_uniform_3d(&self) -> bool
where T: PartialEq,

Returns true if the 3 dimensions of the extent are equal.

Source§

impl Extent3d<i8>

Source

pub const fn c_volume(self) -> i8

The volume of the 3d extent.

Source

pub const fn c_surface_area(self) -> i8

The surface area of the 3d extent.

Source§

impl Extent3d<i16>

Source

pub const fn c_volume(self) -> i16

The volume of the 3d extent.

Source

pub const fn c_surface_area(self) -> i16

The surface area of the 3d extent.

Source§

impl Extent3d<i32>

Source

pub const fn c_volume(self) -> i32

The volume of the 3d extent.

Source

pub const fn c_surface_area(self) -> i32

The surface area of the 3d extent.

Source§

impl Extent3d<i64>

Source

pub const fn c_volume(self) -> i64

The volume of the 3d extent.

Source

pub const fn c_surface_area(self) -> i64

The surface area of the 3d extent.

Source§

impl Extent3d<i128>

Source

pub const fn c_volume(self) -> i128

The volume of the 3d extent.

Source

pub const fn c_surface_area(self) -> i128

The surface area of the 3d extent.

Source§

impl Extent3d<isize>

Source

pub const fn c_volume(self) -> isize

The volume of the 3d extent.

Source

pub const fn c_surface_area(self) -> isize

The surface area of the 3d extent.

Source§

impl Extent3d<u8>

Source

pub const fn c_volume(self) -> u8

The volume of the 3d extent.

Source

pub const fn c_surface_area(self) -> u8

The surface area of the 3d extent.

Source§

impl Extent3d<u16>

Source

pub const fn c_volume(self) -> u16

The volume of the 3d extent.

Source

pub const fn c_surface_area(self) -> u16

The surface area of the 3d extent.

Source§

impl Extent3d<u32>

Source

pub const fn c_volume(self) -> u32

The volume of the 3d extent.

Source

pub const fn c_surface_area(self) -> u32

The surface area of the 3d extent.

Source§

impl Extent3d<u64>

Source

pub const fn c_volume(self) -> u64

The volume of the 3d extent.

Source

pub const fn c_surface_area(self) -> u64

The surface area of the 3d extent.

Source§

impl Extent3d<u128>

Source

pub const fn c_volume(self) -> u128

The volume of the 3d extent.

Source

pub const fn c_surface_area(self) -> u128

The surface area of the 3d extent.

Source§

impl Extent3d<usize>

Source

pub const fn c_volume(self) -> usize

The volume of the 3d extent.

Source

pub const fn c_surface_area(self) -> usize

The surface area of the 3d extent.

Source§

impl Extent3d<f32>

Source

pub const fn volume(self) -> f32

The volume of the 3d extent.

Source

pub const fn surface_area(self) -> f32

The surface area of the 3d extent.

Source§

impl Extent3d<f64>

Source

pub const fn volume(self) -> f64

The volume of the 3d extent.

Source

pub const fn surface_area(self) -> f64

The surface area of the 3d extent.