Skip to main content

ColumnMut

Struct ColumnMut 

Source
pub struct ColumnMut<'w, T>(/* private fields */);
Expand description

Mutable access to one column’s values without changing which entities it holds.

Implementations§

Source§

impl<T> ColumnMut<'_, T>

Source

pub fn get(&self, e: Entity) -> Option<&T>

Source

pub fn iter( &self, ) -> impl DoubleEndedIterator<Item = (Entity, &T)> + ExactSizeIterator

Source

pub fn len(&self) -> usize

Source

pub fn is_empty(&self) -> bool

Source§

impl<T: Clone> ColumnMut<'_, T>

Source

pub fn get_mut(&mut self, e: Entity) -> Option<&mut T>

Source

pub fn iter_mut( &mut self, ) -> impl DoubleEndedIterator<Item = (Entity, &mut T)> + ExactSizeIterator

Trait Implementations§

Source§

impl<'w, T: Debug> Debug for ColumnMut<'w, T>

Source§

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

Formats the value using the given formatter. Read more

Auto Trait Implementations§

§

impl<'w, T> !UnwindSafe for ColumnMut<'w, T>

§

impl<'w, T> Forget for ColumnMut<'w, T>

§

impl<'w, T> Freeze for ColumnMut<'w, T>
where &'w mut Column<T>: Freeze,

§

impl<'w, T> RefUnwindSafe for ColumnMut<'w, T>
where &'w mut Column<T>: RefUnwindSafe,

§

impl<'w, T> Send for ColumnMut<'w, T>
where &'w mut Column<T>: Send,

§

impl<'w, T> Sync for ColumnMut<'w, T>
where &'w mut Column<T>: Sync,

§

impl<'w, T> Unpin for ColumnMut<'w, T>
where &'w mut Column<T>: Unpin,

§

impl<'w, T> UnsafeUnpin for ColumnMut<'w, T>
where &'w mut Column<T>: UnsafeUnpin,

Blanket Implementations§

Source§

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

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

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

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

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

Source§

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

Mutably borrows from an owned value. Read more
Source§

impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
where ST: ?Sized, DT: ?Sized,

Source§

impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
where ST: ?Sized, DT: ?Sized,

Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where 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.

Source§

impl<T> Read<Exclusive, BecauseExclusive> for T
where T: ?Sized,

Source§

impl<T> Same for T

Source§

type Output = T

Should always be Self
Source§

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

Source§

type Error = !

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

fn try_from(value: U) -> Result<T, !>

Performs the conversion.
Source§

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

Source§

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.