Struct extendr_api::prelude::utils::slice::RefGroupMut
pub struct RefGroupMut<'a, E, T = <E as Entity>::Unit>(<<E as Entity>::Group as ForType>::FaerOf<*mut T>, PhantomData<&'a mut ()>)
where
E: Entity,
T: 'a;
Expand description
Wrapper around a group of mutable references.
Tuple Fields§
§0: <<E as Entity>::Group as ForType>::FaerOf<*mut T>
§1: PhantomData<&'a mut ()>
Implementations§
§impl<'a, E, T, const N: usize> RefGroupMut<'a, E, [T; N]>where
E: Entity,
impl<'a, E, T, const N: usize> RefGroupMut<'a, E, [T; N]>where
E: Entity,
pub fn unzip(self) -> [RefGroupMut<'a, E, T>; N]
pub fn unzip(self) -> [RefGroupMut<'a, E, T>; N]
Convert a mutable reference to an array to an array of mutable references.
§impl<'a, E, T> RefGroupMut<'a, E, T>where
E: Entity,
impl<'a, E, T> RefGroupMut<'a, E, T>where
E: Entity,
pub fn new(
reference: <<E as Entity>::Group as ForType>::FaerOf<&'a mut T>,
) -> RefGroupMut<'a, E, T>
pub fn new( reference: <<E as Entity>::Group as ForType>::FaerOf<&'a mut T>, ) -> RefGroupMut<'a, E, T>
Create a new RefGroupMut
from a group of mutable references.
pub fn into_inner(self) -> <<E as Entity>::Group as ForType>::FaerOf<&'a mut T>
pub fn into_inner(self) -> <<E as Entity>::Group as ForType>::FaerOf<&'a mut T>
Consume self
to return the internally stored group of references.
pub fn get(&self) -> <<E as Entity>::Group as ForCopyType>::FaerOfCopy<T>where
T: Copy,
pub fn get(&self) -> <<E as Entity>::Group as ForCopyType>::FaerOfCopy<T>where
T: Copy,
Copies and returns the value pointed to by the references.
§impl<'a, E> RefGroupMut<'a, E>where
E: Entity,
impl<'a, E> RefGroupMut<'a, E>where
E: Entity,
Trait Implementations§
§impl<E, T> Debug for RefGroupMut<'_, E, T>
impl<E, T> Debug for RefGroupMut<'_, E, T>
§impl<'a, E, T> IntoConst for RefGroupMut<'a, E, T>where
E: Entity,
impl<'a, E, T> IntoConst for RefGroupMut<'a, E, T>where
E: Entity,
type Target = RefGroup<'a, E, T>
fn into_const(self) -> <RefGroupMut<'a, E, T> as IntoConst>::Target
§impl<E, T> Read for RefGroupMut<'_, E, T>
impl<E, T> Read for RefGroupMut<'_, E, T>
§impl<'short, 'a, E, T> Reborrow<'short> for RefGroupMut<'a, E, T>where
E: Entity,
impl<'short, 'a, E, T> Reborrow<'short> for RefGroupMut<'a, E, T>where
E: Entity,
§impl<'short, 'a, E, T> ReborrowMut<'short> for RefGroupMut<'a, E, T>where
E: Entity,
impl<'short, 'a, E, T> ReborrowMut<'short> for RefGroupMut<'a, E, T>where
E: Entity,
type Target = RefGroupMut<'short, E, T>
fn rb_mut( &'short mut self, ) -> <RefGroupMut<'a, E, T> as ReborrowMut<'short>>::Target
Auto Trait Implementations§
impl<'a, E, T> Freeze for RefGroupMut<'a, E, T>
impl<'a, E, T> RefUnwindSafe for RefGroupMut<'a, E, T>
impl<'a, E, T> Send for RefGroupMut<'a, E, T>
impl<'a, E, T> Sync for RefGroupMut<'a, E, T>
impl<'a, E, T> Unpin for RefGroupMut<'a, E, T>
impl<'a, E, T = <E as Entity>::Unit> !UnwindSafe for RefGroupMut<'a, E, 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