pub struct LawSuite;Expand description
Public reusable law suite for lattice and transfer admission.
Implementations§
Source§impl LawSuite
impl LawSuite
Sourcepub fn check_lattice<S: JoinSemilattice>(
samples: &[S],
) -> Result<(), LawViolation>
pub fn check_lattice<S: JoinSemilattice>( samples: &[S], ) -> Result<(), LawViolation>
Checks all semilattice laws over a non-empty representative state set.
Sourcepub fn check_transfer<S, P>(
policy: &P,
samples: &[S],
) -> Result<(), LawViolation>where
S: JoinSemilattice,
P: TransferPolicy<S>,
pub fn check_transfer<S, P>(
policy: &P,
samples: &[S],
) -> Result<(), LawViolation>where
S: JoinSemilattice,
P: TransferPolicy<S>,
Checks deterministic, monotone, inflationary transfer over the samples.
Trait Implementations§
impl Copy for LawSuite
impl Eq for LawSuite
impl StructuralPartialEq for LawSuite
Auto Trait Implementations§
impl Freeze for LawSuite
impl RefUnwindSafe for LawSuite
impl Send for LawSuite
impl Sync for LawSuite
impl Unpin for LawSuite
impl UnsafeUnpin for LawSuite
impl UnwindSafe for LawSuite
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