pub struct RefGroupMut<'a, E: Entity, T: 'static = <E as Entity>::Unit>(/* private fields */);

Implementations§

source§

impl<'a, E: Entity, T: 'static, const N: usize> RefGroupMut<'a, E, [T; N]>

source

pub fn unzip(self) -> [RefGroupMut<'a, E, T>; N]

source§

impl<'a, E: Entity, T: 'static> RefGroupMut<'a, E, T>

source

pub fn new(slice: GroupFor<E, &'a mut T>) -> Self

source

pub fn into_inner(self) -> GroupFor<E, &'a mut T>

source

pub fn get(&self) -> GroupCopyFor<E, T>where T: Copy,

source

pub fn set(&mut self, value: GroupCopyFor<E, T>)where T: Copy,

source§

impl<'a, E: Entity> RefGroupMut<'a, E>

source

pub fn read(&self) -> E

source

pub fn write(&mut self, value: E)

Trait Implementations§

source§

impl<E: Entity, T: Debug + Copy> Debug for RefGroupMut<'_, E, T>

source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
source§

impl<'a, E: Entity, T: 'static> IntoConst for RefGroupMut<'a, E, T>

§

type Target = RefGroup<'a, E, T>

source§

fn into_const(self) -> Self::Target

source§

impl<E: Entity, T: Copy + Debug> Read for RefGroupMut<'_, E, T>

§

type Output = <<E as Entity>::Group as ForCopyType>::FaerOfCopy<T>

source§

fn read_or(&self, _or: Self::Output) -> Self::Output

source§

impl<'short, 'a, E: Entity, T: 'static> Reborrow<'short> for RefGroupMut<'a, E, T>

§

type Target = RefGroup<'short, E, T>

source§

fn rb(&'short self) -> Self::Target

source§

impl<'short, 'a, E: Entity, T: 'static> ReborrowMut<'short> for RefGroupMut<'a, E, T>

§

type Target = RefGroupMut<'short, E, T>

source§

fn rb_mut(&'short mut self) -> Self::Target

source§

impl<E: Entity, T: Copy + Debug> Write for RefGroupMut<'_, E, T>

source§

fn write(&mut self, values: Self::Output)

Auto Trait Implementations§

§

impl<'a, E, T> RefUnwindSafe for RefGroupMut<'a, E, T>where <<E as Entity>::Group as ForType>::FaerOf<&'static mut T>: RefUnwindSafe,

§

impl<'a, E, T> Send for RefGroupMut<'a, E, T>where <<E as Entity>::Group as ForType>::FaerOf<&'static mut T>: Send,

§

impl<'a, E, T> Sync for RefGroupMut<'a, E, T>where <<E as Entity>::Group as ForType>::FaerOf<&'static mut T>: Sync,

§

impl<'a, E, T> Unpin for RefGroupMut<'a, E, T>where <<E as Entity>::Group as ForType>::FaerOf<&'static mut T>: Unpin,

§

impl<'a, E, T = <E as Entity>::Unit> !UnwindSafe for RefGroupMut<'a, E, T>

Blanket Implementations§

source§

impl<T> Any for Twhere T: 'static + ?Sized,

source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
source§

impl<T> Borrow<T> for Twhere T: ?Sized,

source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
source§

impl<T> BorrowMut<T> for Twhere T: ?Sized,

source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
source§

impl<T> From<T> for T

source§

fn from(t: T) -> T

Returns the argument unchanged.

source§

impl<T, U> Into<U> for Twhere U: From<T>,

source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

§

impl<T> Pointable for T

§

const ALIGN: usize = _

The alignment of pointer.
§

type Init = T

The type for initializers.
§

unsafe fn init(init: <T as Pointable>::Init) -> usize

Initializes a with the given initializer. Read more
§

unsafe fn deref<'a>(ptr: usize) -> &'a T

Dereferences the given pointer. Read more
§

unsafe fn deref_mut<'a>(ptr: usize) -> &'a mut T

Mutably dereferences the given pointer. Read more
§

unsafe fn drop(ptr: usize)

Drops the object pointed to by the given pointer. Read more
source§

impl<T, U> TryFrom<U> for Twhere U: Into<T>,

§

type Error = Infallible

The type returned in the event of a conversion error.
source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
source§

impl<T, U> TryInto<U> for Twhere U: TryFrom<T>,

§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
source§

impl<T> UniversalReborrow for Twhere T: for<'a> Reborrow<'a>,

source§

impl<T> UniversalReborrowMut for Twhere T: for<'a> ReborrowMut<'a>,