pub struct SumUpdateR<U>(pub U);Tuple Fields§
§0: UTrait Implementations§
Source§impl<R: RA, U: Update<R>, V: RA> Update<Sum<V, R>> for SumUpdateR<U>
impl<R: RA, U: Update<R>, V: RA> Update<Sum<V, R>> for SumUpdateR<U>
Source§fn premise(self, from: Sum<V, R>) -> bool
fn premise(self, from: Sum<V, R>) -> bool
(open)
match from { Sum::Right(from) => self.0.premise(from), Sum::Left(_) => false, }
Source§fn update(self, from: Sum<V, R>, ch: U::Choice) -> Sum<V, R>
fn update(self, from: Sum<V, R>, ch: U::Choice) -> Sum<V, R>
(open)
match from { Sum::Right(from) => Sum::Right(self.0.update(from, ch)), x => x, /* Dummy */ }
requires
self.premise(from)Source§fn frame_preserving(self, from: Sum<V, R>, frame: Sum<V, R>) -> U::Choice
fn frame_preserving(self, from: Sum<V, R>, frame: Sum<V, R>) -> U::Choice
⚠
requires
self.premise(from)requires
from.op(frame) != Noneensures
self.update(from, result).op(frame) != Nonetype Choice = <U as Update<R>>::Choice
Auto Trait Implementations§
impl<U> Freeze for SumUpdateR<U>where
U: Freeze,
impl<U> RefUnwindSafe for SumUpdateR<U>where
U: RefUnwindSafe,
impl<U> Send for SumUpdateR<U>where
U: Send,
impl<U> Sync for SumUpdateR<U>where
U: Sync,
impl<U> Unpin for SumUpdateR<U>where
U: Unpin,
impl<U> UnwindSafe for SumUpdateR<U>where
U: UnwindSafe,
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