pub struct Update<'s, T> { /* private fields */ }
Implementations§
Source§impl<'s, T> Update<'s, T>
impl<'s, T> Update<'s, T>
pub fn new( system: &'s System, current_version: Option<SystemVersion>, receiver: &'s mut Option<(SystemVersion, T)>, ) -> Self
pub fn system(&self) -> &'s System
pub fn get<'r, N: SystemNode + ?Sized>( &'r mut self, node: &'r N, ) -> &'r N::Value
pub fn update<F: FnOnce() -> T>(self, f: F)
pub fn update_with_old<F: FnOnce(Option<T>) -> T>(self, f: F)
Auto Trait Implementations§
impl<'s, T> Freeze for Update<'s, T>
impl<'s, T> RefUnwindSafe for Update<'s, T>where
T: RefUnwindSafe,
impl<'s, T> Send for Update<'s, T>where
T: Send,
impl<'s, T> Sync for Update<'s, T>where
T: Sync,
impl<'s, T> Unpin for Update<'s, T>
impl<'s, T> !UnwindSafe for Update<'s, 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