ViewUpdateRemove

Struct ViewUpdateRemove 

Source
pub struct ViewUpdateRemove<R: ViewRel>(pub Snapshot<R::Auth>);

Tuple Fields§

§0: Snapshot<R::Auth>

Trait Implementations§

Source§

impl<R: ViewRel> Update<View<R>> for ViewUpdateRemove<R>

Source§

fn premise(self, from: View<R>) -> bool

(open)

pearlite! {
    from.auth() != None &&
    forall<f: R::Frag>
        match from.frag().op(f) {
            Some(ff) => R::rel(from.auth(), ff),
            None => false
        } ==>
        R::rel(Some(*self.0), f)
}
Source§

fn update(self, from: View<R>, _: ()) -> View<R>

(open)

View::new_auth(*self.0)

requires

self.premise(from)

ensures

R::rel(Some(*self.0), R::Frag::unit())

Source§

fn frame_preserving(self, from: View<R>, frame: View<R>)

requires

self.premise(from)

requires

from.op(frame) != None

ensures

self.update(from, result).op(frame) != None

Source§

type Choice = ()

Auto Trait Implementations§

§

impl<R> Freeze for ViewUpdateRemove<R>

§

impl<R> RefUnwindSafe for ViewUpdateRemove<R>
where <R as ViewRel>::Auth: RefUnwindSafe,

§

impl<R> Send for ViewUpdateRemove<R>
where <R as ViewRel>::Auth: Send,

§

impl<R> Sync for ViewUpdateRemove<R>
where <R as ViewRel>::Auth: Sync,

§

impl<R> Unpin for ViewUpdateRemove<R>
where <R as ViewRel>::Auth: Unpin,

§

impl<R> UnwindSafe for ViewUpdateRemove<R>
where <R as ViewRel>::Auth: UnwindSafe,

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.