Struct pasture_core::containers::PerAttributePointBufferSliceMut [−][src]
Non-owning, mutable slice of the data of a PerAttributePointBufferMut
Implementations
impl<'p> PerAttributePointBufferSliceMut<'p>
[src]
pub fn new(
buffer: &'p mut dyn PerAttributePointBufferMut<'p>,
range_in_buffer: Range<usize>
) -> Self
[src]
buffer: &'p mut dyn PerAttributePointBufferMut<'p>,
range_in_buffer: Range<usize>
) -> Self
Creates a new PerAttributePointBufferSlice
pointing to the given range within the given buffer
Panics
Panics if the end of range_in_buffer
is larger than buffer.len()
Trait Implementations
impl<'p> PerAttributePointBuffer for PerAttributePointBufferSliceMut<'p>
[src]
fn get_raw_attribute_ref(
&self,
point_index: usize,
attribute: &PointAttributeDefinition
) -> &[u8]
[src]
&self,
point_index: usize,
attribute: &PointAttributeDefinition
) -> &[u8]
fn get_raw_attribute_range_ref(
&self,
index_range: Range<usize>,
attribute: &PointAttributeDefinition
) -> &[u8]
[src]
&self,
index_range: Range<usize>,
attribute: &PointAttributeDefinition
) -> &[u8]
fn slice(&self, range: Range<usize>) -> PerAttributePointBufferSlice<'_>
[src]
impl<'p> PerAttributePointBufferMut<'p> for PerAttributePointBufferSliceMut<'p>
[src]
fn get_raw_attribute_mut(
&mut self,
point_index: usize,
attribute: &PointAttributeDefinition
) -> &mut [u8]
[src]
&mut self,
point_index: usize,
attribute: &PointAttributeDefinition
) -> &mut [u8]
fn get_raw_attribute_range_mut(
&mut self,
index_range: Range<usize>,
attribute: &PointAttributeDefinition
) -> &mut [u8]
[src]
&mut self,
index_range: Range<usize>,
attribute: &PointAttributeDefinition
) -> &mut [u8]
fn slice_mut(
&'p mut self,
range: Range<usize>
) -> PerAttributePointBufferSliceMut<'p>
[src]
&'p mut self,
range: Range<usize>
) -> PerAttributePointBufferSliceMut<'p>
fn disjunct_slices_mut<'b>(
&'b mut self,
ranges: &[Range<usize>]
) -> Vec<PerAttributePointBufferSliceMut<'p>> where
'p: 'b,
[src]
&'b mut self,
ranges: &[Range<usize>]
) -> Vec<PerAttributePointBufferSliceMut<'p>> where
'p: 'b,
fn as_per_attribute_point_buffer(&self) -> &dyn PerAttributePointBuffer
[src]
impl<'p> PointBuffer for PerAttributePointBufferSliceMut<'p>
[src]
fn get_raw_point(&self, point_index: usize, buf: &mut [u8])
[src]
fn get_raw_attribute(
&self,
point_index: usize,
attribute: &PointAttributeDefinition,
buf: &mut [u8]
)
[src]
&self,
point_index: usize,
attribute: &PointAttributeDefinition,
buf: &mut [u8]
)
fn get_raw_points(&self, index_range: Range<usize>, buf: &mut [u8])
[src]
fn get_raw_attribute_range(
&self,
index_range: Range<usize>,
attribute: &PointAttributeDefinition,
buf: &mut [u8]
)
[src]
&self,
index_range: Range<usize>,
attribute: &PointAttributeDefinition,
buf: &mut [u8]
)
fn len(&self) -> usize
[src]
fn point_layout(&self) -> &PointLayout
[src]
fn as_per_attribute(&self) -> Option<&dyn PerAttributePointBuffer>
[src]
fn is_empty(&self) -> bool
[src]
fn as_interleaved(&self) -> Option<&dyn InterleavedPointBuffer>
[src]
impl<'a> Send for PerAttributePointBufferSliceMut<'a>
[src]
Auto Trait Implementations
impl<'p> !RefUnwindSafe for PerAttributePointBufferSliceMut<'p>
impl<'p> !Sync for PerAttributePointBufferSliceMut<'p>
impl<'p> Unpin for PerAttributePointBufferSliceMut<'p>
impl<'p> !UnwindSafe for PerAttributePointBufferSliceMut<'p>
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
pub fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> Pointable for T
pub const ALIGN: usize
type Init = T
The type for initializers.
pub unsafe fn init(init: <T as Pointable>::Init) -> usize
pub unsafe fn deref<'a>(ptr: usize) -> &'a T
pub unsafe fn deref_mut<'a>(ptr: usize) -> &'a mut T
pub unsafe fn drop(ptr: usize)
impl<T> Same<T> for T
type Output = T
Should always be Self
impl<SS, SP> SupersetOf<SS> for SP where
SS: SubsetOf<SP>,
SS: SubsetOf<SP>,
pub fn to_subset(&self) -> Option<SS>
pub fn is_in_subset(&self) -> bool
pub fn to_subset_unchecked(&self) -> SS
pub fn from_subset(element: &SS) -> SP
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
pub fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error
The type returned in the event of a conversion error.
pub fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>
[src]
impl<V, T> VZip<V> for T where
V: MultiLane<T>,
V: MultiLane<T>,