pub struct ContractFactSet<'tcx> {
pub contracts: Vec<PropertyContract<'tcx>>,
pub predicates: Vec<NumericPredicate<'tcx>>,
}Expand description
The set of contract facts known to hold for one graph node.
Fields§
§contracts: Vec<PropertyContract<'tcx>>§predicates: Vec<NumericPredicate<'tcx>>Implementations§
Source§impl<'tcx> ContractFactSet<'tcx>
impl<'tcx> ContractFactSet<'tcx>
Sourcepub fn new_default() -> Self
pub fn new_default() -> Self
Create an empty contract fact set.
Sourcepub fn add_contract(&mut self, contract: PropertyContract<'tcx>)
pub fn add_contract(&mut self, contract: PropertyContract<'tcx>)
Add one contract assumption to the fact set.
Sourcepub fn add_predicate(&mut self, predicate: NumericPredicate<'tcx>)
pub fn add_predicate(&mut self, predicate: NumericPredicate<'tcx>)
Add one numeric predicate to the fact set.
Sourcepub fn get_contracts_length(&self) -> usize
pub fn get_contracts_length(&self) -> usize
Return the number of contract entries stored in the fact set.
Trait Implementations§
Source§impl<'tcx> Clone for ContractFactSet<'tcx>
impl<'tcx> Clone for ContractFactSet<'tcx>
Source§fn clone(&self) -> ContractFactSet<'tcx>
fn clone(&self) -> ContractFactSet<'tcx>
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl<'tcx> Freeze for ContractFactSet<'tcx>
impl<'tcx> !RefUnwindSafe for ContractFactSet<'tcx>
impl<'tcx> Send for ContractFactSet<'tcx>
impl<'tcx> Sync for ContractFactSet<'tcx>
impl<'tcx> Unpin for ContractFactSet<'tcx>
impl<'tcx> !UnwindSafe for ContractFactSet<'tcx>
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more