pub struct SpatialTensor<'a> { /* private fields */ }Expand description
Borrowed chunked view over a PointCloud.
Implementations§
Source§impl<'a> SpatialTensor<'a>
impl<'a> SpatialTensor<'a>
Sourcepub fn new(cloud: &'a PointCloud, chunk_size: usize) -> SpatialResult<Self>
pub fn new(cloud: &'a PointCloud, chunk_size: usize) -> SpatialResult<Self>
Creates a chunked view with an explicit chunk size (must be > 0).
Sourcepub const fn cloud(&self) -> &'a PointCloud
pub const fn cloud(&self) -> &'a PointCloud
Returns the underlying point cloud.
Sourcepub const fn chunk_size(&self) -> usize
pub const fn chunk_size(&self) -> usize
Returns the configured chunk size.
Sourcepub fn schema(&self) -> &PointSchema
pub fn schema(&self) -> &PointSchema
Returns the point schema shared by every chunk.
Sourcepub fn chunks(&self) -> impl Iterator<Item = SpatialTensorChunk> + 'a
pub fn chunks(&self) -> impl Iterator<Item = SpatialTensorChunk> + 'a
Iterates contiguous index ranges covering the full cloud.
Trait Implementations§
Source§impl<'a> Clone for SpatialTensor<'a>
impl<'a> Clone for SpatialTensor<'a>
Source§fn clone(&self) -> SpatialTensor<'a>
fn clone(&self) -> SpatialTensor<'a>
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl<'a> Debug for SpatialTensor<'a>
impl<'a> Debug for SpatialTensor<'a>
impl<'a> Copy for SpatialTensor<'a>
Auto Trait Implementations§
impl<'a> Freeze for SpatialTensor<'a>
impl<'a> RefUnwindSafe for SpatialTensor<'a>
impl<'a> Send for SpatialTensor<'a>
impl<'a> Sync for SpatialTensor<'a>
impl<'a> Unpin for SpatialTensor<'a>
impl<'a> UnsafeUnpin for SpatialTensor<'a>
impl<'a> UnwindSafe for SpatialTensor<'a>
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