Struct extendr_api::prelude::utils::slice::RefGroupMut
source · pub struct RefGroupMut<'a, E, T = <E as Entity>::Unit>(/* private fields */)
where
E: Entity,
T: 'a;Expand description
Wrapper around a group of mutable references.
Implementations§
source§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,
sourcepub 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.
source§impl<'a, E, T> RefGroupMut<'a, E, T>where
E: Entity,
impl<'a, E, T> RefGroupMut<'a, E, T>where
E: Entity,
sourcepub 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.
sourcepub 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.
sourcepub 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.
sourcepub fn set(
&mut self,
value: <<E as Entity>::Group as ForCopyType>::FaerOfCopy<T>,
)where
T: Copy,
pub fn set(
&mut self,
value: <<E as Entity>::Group as ForCopyType>::FaerOfCopy<T>,
)where
T: Copy,
Writes value to the location pointed to by the references.
Trait Implementations§
source§impl<E, T> Debug for RefGroupMut<'_, E, T>
impl<E, T> Debug for RefGroupMut<'_, E, T>
source§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
source§impl<E, T> Read for RefGroupMut<'_, E, T>
impl<E, T> Read for RefGroupMut<'_, E, T>
type Output = <<E as Entity>::Group as ForCopyType>::FaerOfCopy<T>
fn read_or( &self, _or: <RefGroupMut<'_, E, T> as Read>::Output, ) -> <RefGroupMut<'_, E, T> as Read>::Output
source§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,
source§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