pub struct LastValue;Expand description
LastValue: *current = update if update is not the type’s “empty”
— for Option<U> only assigns when Some. The #[reducer(last)]
macro variant wraps the field type in Option<T> in the Update
struct, so the user-facing semantics are “assign only if Some”.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for LastValue
impl RefUnwindSafe for LastValue
impl Send for LastValue
impl Sync for LastValue
impl Unpin for LastValue
impl UnsafeUnpin for LastValue
impl UnwindSafe for LastValue
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