ProdLocalUpdate

Struct ProdLocalUpdate 

Source
pub struct ProdLocalUpdate<U1, U2>(pub U1, pub U2);

Tuple Fields§

§0: U1§1: U2

Trait Implementations§

Source§

impl<R1: RA, R2: RA, U1: LocalUpdate<R1>, U2: LocalUpdate<R2>> LocalUpdate<(R1, R2)> for ProdLocalUpdate<U1, U2>

Source§

fn premise(self, from_auth: (R1, R2), from_frag: (R1, R2)) -> bool

(open)

self.0.premise(from_auth.0, from_frag.0) && self.1.premise(from_auth.1, from_frag.1)
Source§

fn update( self, from_auth: (R1, R2), from_frag: (R1, R2), ) -> ((R1, R2), (R1, R2))

(open)

let (to_auth0, to_frag0) = self.0.update(from_auth.0, from_frag.0);
let (to_auth1, to_frag1) = self.1.update(from_auth.1, from_frag.1);
((to_auth0, to_auth1), (to_frag0, to_frag1))
Source§

fn frame_preserving( self, from_auth: (R1, R2), from_frag: (R1, R2), frame: Option<(R1, R2)>, )

requires

self.premise(from_auth, from_frag)

requires

Some(from_frag).op(frame) == Some(Some(from_auth))

ensures

let (to_auth, to_frag) = self.update(from_auth, from_frag);
Some(to_frag).op(frame) == Some(Some(to_auth))

Auto Trait Implementations§

§

impl<U1, U2> Freeze for ProdLocalUpdate<U1, U2>
where U1: Freeze, U2: Freeze,

§

impl<U1, U2> RefUnwindSafe for ProdLocalUpdate<U1, U2>

§

impl<U1, U2> Send for ProdLocalUpdate<U1, U2>
where U1: Send, U2: Send,

§

impl<U1, U2> Sync for ProdLocalUpdate<U1, U2>
where U1: Sync, U2: Sync,

§

impl<U1, U2> Unpin for ProdLocalUpdate<U1, U2>
where U1: Unpin, U2: Unpin,

§

impl<U1, U2> UnwindSafe for ProdLocalUpdate<U1, U2>
where U1: UnwindSafe, U2: 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.