Trait pasture_core::containers::InterleavedPointBufferMutExt[][src]

pub trait InterleavedPointBufferMutExt {
    fn get_point_mut<T: PointType>(&mut self, point_index: usize) -> &mut T;
fn get_points_mut<T: PointType>(&mut self, range: Range<usize>) -> &mut [T];
fn iter_point_mut<T: PointType>(&mut self) -> PointIteratorByMut<'_, T>

Notable traits for PointIteratorByMut<'a, T>

impl<'a, T: PointType + 'a> Iterator for PointIteratorByMut<'a, T> type Item = &'a mut T;
; }

Extension trait that provides generic methods for accessing point data in an InterleavedPointBufferMut

Required methods

fn get_point_mut<T: PointType>(&mut self, point_index: usize) -> &mut T[src]

Returns a mutable reference to the point at point_index from the associated InterleavedPointBuffer, strongly typed to the PointType T

Panics

Panics if point_index is >= self.len()

fn get_points_mut<T: PointType>(&mut self, range: Range<usize>) -> &mut [T][src]

Returns a mutable reference to the given range of points from the associated InterleavedPointBuffer, strongly typed to the PointType T

Panics

Panics if the start of range is greater than the end of range, or if the end of range is greater than self.len()

fn iter_point_mut<T: PointType>(&mut self) -> PointIteratorByMut<'_, T>

Notable traits for PointIteratorByMut<'a, T>

impl<'a, T: PointType + 'a> Iterator for PointIteratorByMut<'a, T> type Item = &'a mut T;
[src]

Returns an iterator over mutable references to all points within the associated InterleavedPointBuffer, strongly typed to the PointType T

Panics

Panics if the associated InterleavedPointBuffer does not store points with type T

Loading content...

Implementors

impl<B: InterleavedPointBufferMut + ?Sized> InterleavedPointBufferMutExt for B[src]

Loading content...