Trait pasture_core::containers::InterleavedPointBufferMutExt [−][src]
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]
Notable traits for PointIteratorByMut<'a, T>
impl<'a, T: PointType + 'a> Iterator for PointIteratorByMut<'a, T> type Item = &'a mut T;
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
Implementors
impl<B: InterleavedPointBufferMut + ?Sized> InterleavedPointBufferMutExt for B
[src]
fn get_point_mut<T: PointType>(&mut self, point_index: usize) -> &mut T
[src]
fn get_points_mut<T: PointType>(&mut self, range: Range<usize>) -> &mut [T]
[src]
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]
Notable traits for PointIteratorByMut<'a, T>
impl<'a, T: PointType + 'a> Iterator for PointIteratorByMut<'a, T> type Item = &'a mut T;