pub struct ColMut<'w, T: 'static> {
cells: &'w [UnsafeCell<T>],
}Expand description
A claimed column, exclusive.
Handed out by PlanBuilder::write and kept in a query’s plan. Unlike
Col it is not Copy, and ColMut::at takes the handle
exclusively: that is what makes one Query::read hand out at most one
exclusive reference per column, which in turn is why declaring a query needs
no unsafe.
Fields§
§cells: &'w [UnsafeCell<T>]Implementations§
Source§impl<'w, T: 'static> ColMut<'w, T>
impl<'w, T: 'static> ColMut<'w, T>
Auto Trait Implementations§
impl<'w, T> !RefUnwindSafe for ColMut<'w, T>
impl<'w, T> !Send for ColMut<'w, T>
impl<'w, T> !Sync for ColMut<'w, T>
impl<'w, T> !UnwindSafe for ColMut<'w, T>
impl<'w, T> Forget for ColMut<'w, T>
impl<'w, T> Freeze for ColMut<'w, T>where
&'w [UnsafeCell<T>]: Freeze,
impl<'w, T> Unpin for ColMut<'w, T>where
&'w [UnsafeCell<T>]: Unpin,
impl<'w, T> UnsafeUnpin for ColMut<'w, T>where
&'w [UnsafeCell<T>]: UnsafeUnpin,
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