Struct vstd::rwlock::InvariantPredicate_auto_RwLock_exc
source · pub struct InvariantPredicate_auto_RwLock_exc {}
Trait Implementations§
source§impl<V, Pred: RwLockPredicate<V>> AtomicInvariantPredicate<Tracked<Instance<(Pred, CellId), PointsTo<V>, InternalPred<V, Pred>>>, bool, flag_exc<(Pred, CellId), PointsTo<V>, InternalPred<V, Pred>>> for InvariantPredicate_auto_RwLock_exc
impl<V, Pred: RwLockPredicate<V>> AtomicInvariantPredicate<Tracked<Instance<(Pred, CellId), PointsTo<V>, InternalPred<V, Pred>>>, bool, flag_exc<(Pred, CellId), PointsTo<V>, InternalPred<V, Pred>>> for InvariantPredicate_auto_RwLock_exc
source§open spec fn atomic_inv(
declare_struct_with_invariants_tmp_k: FieldType_RwLock_inst<V, Pred>,
declare_struct_with_invariants_tmp_v: bool,
declare_struct_with_invariants_tmp_g: flag_exc<(Pred, CellId), PointsTo<V>, InternalPred<V, Pred>>
) -> bool
open spec fn atomic_inv( declare_struct_with_invariants_tmp_k: FieldType_RwLock_inst<V, Pred>, declare_struct_with_invariants_tmp_v: bool, declare_struct_with_invariants_tmp_g: flag_exc<(Pred, CellId), PointsTo<V>, InternalPred<V, Pred>> ) -> bool
{
let inst = declare_struct_with_invariants_tmp_k;
let v = declare_struct_with_invariants_tmp_v;
let g = declare_struct_with_invariants_tmp_g;
{ g.instance_id() == inst@.id() && g.value() == v }
}
Auto Trait Implementations§
impl Freeze for InvariantPredicate_auto_RwLock_exc
impl RefUnwindSafe for InvariantPredicate_auto_RwLock_exc
impl Send for InvariantPredicate_auto_RwLock_exc
impl Sync for InvariantPredicate_auto_RwLock_exc
impl Unpin for InvariantPredicate_auto_RwLock_exc
impl UnwindSafe for InvariantPredicate_auto_RwLock_exc
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