pub struct Excl<T>(pub T);Expand description
Tuple Fields§
§0: TTrait Implementations§
Source§impl<T> RA for Excl<T>
impl<T> RA for Excl<T>
Source§fn factor(self, factor: Self) -> Option<Self>
fn factor(self, factor: Self) -> Option<Self>
(open)
Noneensures
match result { Some(c) => factor.op(c) == Some(self), None => forall<c: Self> factor.op(c) != Some(self), }
Source§fn commutative(a: Self, b: Self)
fn commutative(a: Self, b: Self)
(open(pub(self)), law) ⚠
ensures
a.op(b) == b.op(a)Source§fn associative(a: Self, b: Self, c: Self)
fn associative(a: Self, b: Self, c: Self)
(open(pub(self)), law) ⚠
ensures
a.op(b).and_then_logic(|ab: Self| ab.op(c)) == b.op(c).and_then_logic(|bc| a.op(bc))
Source§fn core(self) -> Option<Self>
fn core(self) -> Option<Self>
(open)
Noneensures
match result { Some(c) => c.op(c) == Some(c) && c.op(self) == Some(self), None => true }
Source§fn core_is_maximal_idemp(self, i: Self)
fn core_is_maximal_idemp(self, i: Self)
⚠
requires
i.op(i) == Some(i)requires
i.op(self) == Some(self)ensures
match self.core() { Some(c) => i.incl(c), None => false, }
Source§fn incl_eq(self, other: Self) -> bool
fn incl_eq(self, other: Self) -> bool
(open, sealed) Read more
Source§fn incl_eq_op(a: Self, b: Self, x: Self) -> bool
fn incl_eq_op(a: Self, b: Self, x: Self) -> bool
(open, sealed) Read more
Source§fn update_nondet(self, s: Set<Self>) -> bool
fn update_nondet(self, s: Set<Self>) -> bool
This is used in
Resource::update_nondet. Read moreSource§fn incl_transitive(a: Self, b: Self, c: Self)
fn incl_transitive(a: Self, b: Self, c: Self)
Source§impl<T> Update<Excl<T>> for ExclUpdate<T>
impl<T> Update<Excl<T>> for ExclUpdate<T>
Source§fn update(self, from: Excl<T>, _: ()) -> Excl<T>
fn update(self, from: Excl<T>, _: ()) -> Excl<T>
(open)
Excl(*self.0)requires
self.premise(from)Source§fn frame_preserving(self, from: Excl<T>, frame: Excl<T>)
fn frame_preserving(self, from: Excl<T>, frame: Excl<T>)
⚠
requires
self.premise(from)requires
from.op(frame) != Noneensures
self.update(from, result).op(frame) != Nonetype Choice = ()
Auto Trait Implementations§
impl<T> Freeze for Excl<T>where
T: Freeze,
impl<T> RefUnwindSafe for Excl<T>where
T: RefUnwindSafe,
impl<T> Send for Excl<T>where
T: Send,
impl<T> Sync for Excl<T>where
T: Sync,
impl<T> Unpin for Excl<T>where
T: Unpin,
impl<T> UnwindSafe for Excl<T>where
T: 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