Skip to main content

ViewUpdate

Struct ViewUpdate 

Source
pub struct ViewUpdate<R: ViewRel, Choice>(pub Snapshot<Mapping<Choice, (R::Auth, R::Frag)>>);
Expand description

Apply an update to a View, that changes both the authority and the fragment part, non-deterministically.

Tuple Fields§

§0: Snapshot<Mapping<Choice, (R::Auth, R::Frag)>>

Trait Implementations§

Source§

impl<R: ViewRel, Choice> Update<View<R>> for ViewUpdate<R, Choice>

Source§

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

logic(open, inline)

/* Macro-generated */

Source§

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

logic(open, inline)

View::new(Some(self.0[ch].0), self.0[ch].1)

requires

self.premise(from)

Source§

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

logic

requires

self.premise(from)

requires

from.op(frame) != None

ensures

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

Source§

type Choice = Choice

If the update is non-deterministic, it will pick a choice of this type for the update.

Auto Trait Implementations§

§

impl<R, Choice> Freeze for ViewUpdate<R, Choice>

§

impl<R, Choice> Objective for ViewUpdate<R, Choice>

§

impl<R, Choice> RefUnwindSafe for ViewUpdate<R, Choice>

§

impl<R, Choice> Send for ViewUpdate<R, Choice>

§

impl<R, Choice> Sync for ViewUpdate<R, Choice>

§

impl<R, Choice> Unpin for ViewUpdate<R, Choice>

§

impl<R, Choice> UnsafeUnpin for ViewUpdate<R, Choice>

§

impl<R, Choice> UnwindSafe for ViewUpdate<R, Choice>

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.