pub struct AabbPin<T: ?Sized> { /* private fields */ }
Expand description
A protected mutable reference that derefs to &T
.
See the AabbPin module documentation for more explanation.
Implementations§
Source§impl<'a, T: HasInner> AabbPin<&'a mut T>
impl<'a, T: HasInner> AabbPin<&'a mut T>
pub fn destruct_mut(&mut self) -> (&Rect<T::Num>, &mut T::Inner)
Source§impl<'a, T: HasInner> AabbPin<&'a mut T>
impl<'a, T: HasInner> AabbPin<&'a mut T>
Sourcepub fn unpack_inner(self) -> &'a mut T::Inner
pub fn unpack_inner(self) -> &'a mut T::Inner
Unpack only the mutable innner component
Source§impl<'a, T> AabbPin<&'a mut [T]>
impl<'a, T> AabbPin<&'a mut [T]>
Sourcepub fn get_index_mut(self, ind: usize) -> AabbPin<&'a mut T>
pub fn get_index_mut(self, ind: usize) -> AabbPin<&'a mut T>
Return the element at the specified index. We can’t use the index trait because we don’t want to return a mutable reference.
Sourcepub fn split_at_mut(
self,
va: usize,
) -> (AabbPin<&'a mut [T]>, AabbPin<&'a mut [T]>)
pub fn split_at_mut( self, va: usize, ) -> (AabbPin<&'a mut [T]>, AabbPin<&'a mut [T]>)
Split off the first element.
Sourcepub fn split_first_mut(
self,
) -> Option<(AabbPin<&'a mut T>, AabbPin<&'a mut [T]>)>
pub fn split_first_mut( self, ) -> Option<(AabbPin<&'a mut T>, AabbPin<&'a mut [T]>)>
Split off the first element.
Sourcepub fn truncate_to(self, a: RangeTo<usize>) -> Self
pub fn truncate_to(self, a: RangeTo<usize>) -> Self
Return a smaller slice that ends with the specified index.
Sourcepub fn truncate_from(self, a: RangeFrom<usize>) -> Self
pub fn truncate_from(self, a: RangeFrom<usize>) -> Self
Return a smaller slice that starts at the specified index.
Sourcepub fn truncate(self, a: Range<usize>) -> Self
pub fn truncate(self, a: Range<usize>) -> Self
Return a smaller slice that starts and ends with the specified range.
Sourcepub fn iter_mut(self) -> AabbPinIter<'a, T> ⓘ
pub fn iter_mut(self) -> AabbPinIter<'a, T> ⓘ
Return a mutable iterator.
Trait Implementations§
Source§impl<'a, T> IntoIterator for AabbPin<&'a mut [T]>
impl<'a, T> IntoIterator for AabbPin<&'a mut [T]>
Auto Trait Implementations§
impl<T> Freeze for AabbPin<T>
impl<T> RefUnwindSafe for AabbPin<T>where
T: RefUnwindSafe + ?Sized,
impl<T> Send for AabbPin<T>
impl<T> Sync for AabbPin<T>
impl<T> Unpin for AabbPin<T>
impl<T> UnwindSafe for AabbPin<T>where
T: UnwindSafe + ?Sized,
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> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
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