pub struct Grid<const D: usize, T> { /* private fields */ }Implementations§
Source§impl Grid<3, usize>
impl Grid<3, usize>
pub fn from_tessellation(tessellation: &Tessellation, size: f64) -> Self
Source§impl<const D: usize, T> Grid<D, T>
impl<const D: usize, T> Grid<D, T>
pub fn new(data: Vec<T>, nel: [usize; D]) -> Self
pub fn new_row_major(data: Vec<T>, nel: [usize; D]) -> Self
pub fn data(&self) -> &[T]
pub fn flat(&self, index: [usize; D]) -> usize
pub fn logical_iter<'a>( &'a self, ) -> impl Iterator<Item = ([usize; D], &'a T)> + 'a
pub fn nel(&self) -> &[usize; D]
pub fn is_col_major(&self) -> bool
pub fn len(&self) -> usize
pub fn is_empty(&self) -> bool
Trait Implementations§
Source§impl<const D: usize, const L: usize, const M: usize, const N: usize, T, U, V> From<&Orthotree<D, L, M, N, T, U, V>> for Grid<D, V>
impl<const D: usize, const L: usize, const M: usize, const N: usize, T, U, V> From<&Orthotree<D, L, M, N, T, U, V>> for Grid<D, V>
Source§impl<T> From<Grid<3, T>> for Tessellation
impl<T> From<Grid<3, T>> for Tessellation
Source§impl<const D: usize, const L: usize, const M: usize, const N: usize, T, U, V> From<Grid<D, V>> for Orthotree<D, L, M, N, T, U, V>
impl<const D: usize, const L: usize, const M: usize, const N: usize, T, U, V> From<Grid<D, V>> for Orthotree<D, L, M, N, T, U, V>
Auto Trait Implementations§
impl<const D: usize, T> Freeze for Grid<D, T>
impl<const D: usize, T> RefUnwindSafe for Grid<D, T>where
T: RefUnwindSafe,
impl<const D: usize, T> Send for Grid<D, T>where
T: Send,
impl<const D: usize, T> Sync for Grid<D, T>where
T: Sync,
impl<const D: usize, T> Unpin for Grid<D, T>where
T: Unpin,
impl<const D: usize, T> UnsafeUnpin for Grid<D, T>
impl<const D: usize, T> UnwindSafe for Grid<D, T>where
T: UnwindSafe,
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