Struct hecs_schedule::borrow::Write
source · [−]#[repr(transparent)]pub struct Write<'a, T>(_);Expand description
Wrapper type for an exclusively borrowed value
Implementations
sourceimpl<'a, T> Write<'a, T>
impl<'a, T> Write<'a, T>
sourcepub fn new(borrow: AtomicRefMut<'a, T>) -> Self
pub fn new(borrow: AtomicRefMut<'a, T>) -> Self
Creates a new Write borrow from an atomic ref
Trait Implementations
sourceimpl<'a, T: 'static> ComponentBorrow for Write<'a, T>
impl<'a, T: 'static> ComponentBorrow for Write<'a, T>
sourceimpl<'a, T: 'static> ContextBorrow<'a> for Write<'a, T>
impl<'a, T: 'static> ContextBorrow<'a> for Write<'a, T>
sourceimpl<T: Component> IntoBorrow for Write<'_, T>
impl<T: Component> IntoBorrow for Write<'_, T>
type Borrow = BorrowMut<T>
type Borrow = BorrowMut<T>
The borrow type
Auto Trait Implementations
impl<'a, T> RefUnwindSafe for Write<'a, T> where
T: RefUnwindSafe,
impl<'a, T> Send for Write<'a, T> where
T: Send,
impl<'a, T> Sync for Write<'a, T> where
T: Sync,
impl<'a, T> Unpin for Write<'a, T>
impl<'a, T> !UnwindSafe for Write<'a, T>
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more