Struct feanor_math::matrix::submatrix::AsFirstElement
source · pub struct AsFirstElement<T>(/* private fields */);Expand description
Represents a contiguous batch of Ts by their first element.
In other words, a pointer to the batch is equal to a pointer to
the first value.
Trait Implementations§
source§impl<'a, T> AsPointerToSlice<T> for AsFirstElement<T>
impl<'a, T> AsPointerToSlice<T> for AsFirstElement<T>
unsafe fn get_pointer(self_: NonNull<Self>) -> NonNull<T>
Auto Trait Implementations§
impl<T> Freeze for AsFirstElement<T>where
T: Freeze,
impl<T> RefUnwindSafe for AsFirstElement<T>where
T: RefUnwindSafe,
impl<T> Send for AsFirstElement<T>where
T: Send,
impl<T> Sync for AsFirstElement<T>where
T: Sync,
impl<T> Unpin for AsFirstElement<T>where
T: Unpin,
impl<T> UnwindSafe for AsFirstElement<T>where
T: UnwindSafe,
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