pub struct BBoxMut<'a, N, T> {
pub rect: Rect<N>,
pub inner: &'a mut T,
}
Expand description
BBox with a reference.
Similar to BBox<N,&mut T>
except
get_inner_mut() doesnt return a &mut &mut T
but instead just a &mut T
.
Fields§
§rect: Rect<N>
§inner: &'a mut T
Implementations§
Trait Implementations§
Auto Trait Implementations§
impl<'a, N, T> Freeze for BBoxMut<'a, N, T>where
N: Freeze,
impl<'a, N, T> RefUnwindSafe for BBoxMut<'a, N, T>where
T: RefUnwindSafe,
N: RefUnwindSafe,
impl<'a, N, T> Send for BBoxMut<'a, N, T>
impl<'a, N, T> Sync for BBoxMut<'a, N, T>
impl<'a, N, T> Unpin for BBoxMut<'a, N, T>where
N: Unpin,
impl<'a, N, T> !UnwindSafe for BBoxMut<'a, N, T>
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