pub struct PositionsMut<'a> { /* private fields */ }Expand description
Checked mutable positions for destructive update simplification.
Implementations§
Source§impl<'a> PositionsMut<'a>
impl<'a> PositionsMut<'a>
Sourcepub fn from_packed(data: &'a mut [[f32; 3]]) -> Self
pub fn from_packed(data: &'a mut [[f32; 3]]) -> Self
Borrow tightly packed positions.
Sourcepub fn from_interleaved(
data: &'a mut [f32],
count: usize,
stride: usize,
offset: usize,
) -> Result<Self, Error>
pub fn from_interleaved( data: &'a mut [f32], count: usize, stride: usize, offset: usize, ) -> Result<Self, Error>
Borrow interleaved floats with a stride and offset in float components.
§Errors
InvalidLayout for an unsupported width, stride, offset or buffer length;
SizeOverflow if view size arithmetic overflows.
Sourcepub fn from_bytes(
data: &'a mut [u8],
count: usize,
stride: usize,
offset: usize,
order: ByteOrder,
) -> Result<Self, Error>
pub fn from_bytes( data: &'a mut [u8], count: usize, stride: usize, offset: usize, order: ByteOrder, ) -> Result<Self, Error>
Borrow initialized byte positions with explicit byte order and byte addresses.
§Errors
InvalidLayout for an unsupported width, stride, offset or buffer length;
SizeOverflow if view size arithmetic overflows.
Trait Implementations§
Auto Trait Implementations§
impl<'a> !UnwindSafe for PositionsMut<'a>
impl<'a> Freeze for PositionsMut<'a>
impl<'a> RefUnwindSafe for PositionsMut<'a>
impl<'a> Send for PositionsMut<'a>
impl<'a> Sync for PositionsMut<'a>
impl<'a> Unpin for PositionsMut<'a>
impl<'a> UnsafeUnpin for PositionsMut<'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
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more