pub struct InvariantLedger<R> { /* private fields */ }Expand description
Complete invariant bundle for one selected reading.
Implementations§
Source§impl<R> InvariantLedger<R>
impl<R> InvariantLedger<R>
Sourcepub fn new(entries: Vec<InvariantLedgerEntry<R>>) -> Self
pub fn new(entries: Vec<InvariantLedgerEntry<R>>) -> Self
Creates one immutable invariant ledger.
Sourcepub fn entries(&self) -> &[InvariantLedgerEntry<R>]
pub fn entries(&self) -> &[InvariantLedgerEntry<R>]
Returns the recorded invariant entries in stable rule order.
Sourcepub fn is_preserved(&self, invariant_id: &str) -> bool
pub fn is_preserved(&self, invariant_id: &str) -> bool
Returns true when the named invariant is present and preserved.
Sourcepub fn is_relaxed(&self, invariant_id: &str) -> bool
pub fn is_relaxed(&self, invariant_id: &str) -> bool
Returns true when the named invariant is present and relaxed.
Trait Implementations§
Source§impl<R: Clone> Clone for InvariantLedger<R>
impl<R: Clone> Clone for InvariantLedger<R>
Source§fn clone(&self) -> InvariantLedger<R>
fn clone(&self) -> InvariantLedger<R>
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl<R: Debug> Debug for InvariantLedger<R>
impl<R: Debug> Debug for InvariantLedger<R>
impl<R: Eq> Eq for InvariantLedger<R>
Source§impl<R: PartialEq> PartialEq for InvariantLedger<R>
impl<R: PartialEq> PartialEq for InvariantLedger<R>
impl<R: PartialEq> StructuralPartialEq for InvariantLedger<R>
Auto Trait Implementations§
impl<R> Freeze for InvariantLedger<R>
impl<R> RefUnwindSafe for InvariantLedger<R>where
R: RefUnwindSafe,
impl<R> Send for InvariantLedger<R>where
R: Send,
impl<R> Sync for InvariantLedger<R>where
R: Sync,
impl<R> Unpin for InvariantLedger<R>where
R: Unpin,
impl<R> UnsafeUnpin for InvariantLedger<R>
impl<R> UnwindSafe for InvariantLedger<R>where
R: 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