pub struct PropositionalConjunction { /* private fields */ }Expand description
A struct which represents a conjunction of Predicates (e.g. it can represent [x >= 5] /\ [y <= 10]).
Implementations§
source§impl PropositionalConjunction
impl PropositionalConjunction
pub fn new(predicates_in_conjunction: Vec<Predicate>) -> Self
pub fn num_predicates(&self) -> u32
pub fn add(&mut self, predicate: Predicate)
pub fn iter(&self) -> impl Iterator<Item = &Predicate> + '_
pub fn extend_and_remove_duplicates( self, additional_elements: impl Iterator<Item = Predicate>, ) -> PropositionalConjunction
Trait Implementations§
source§impl Clone for PropositionalConjunction
impl Clone for PropositionalConjunction
source§fn clone(&self) -> PropositionalConjunction
fn clone(&self) -> PropositionalConjunction
Returns a copy 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 moresource§impl Debug for PropositionalConjunction
impl Debug for PropositionalConjunction
source§impl Default for PropositionalConjunction
impl Default for PropositionalConjunction
source§fn default() -> PropositionalConjunction
fn default() -> PropositionalConjunction
Returns the “default value” for a type. Read more
source§impl Display for PropositionalConjunction
impl Display for PropositionalConjunction
source§impl From<Predicate> for PropositionalConjunction
impl From<Predicate> for PropositionalConjunction
source§impl PartialEq for PropositionalConjunction
impl PartialEq for PropositionalConjunction
impl Eq for PropositionalConjunction
Auto Trait Implementations§
impl Freeze for PropositionalConjunction
impl RefUnwindSafe for PropositionalConjunction
impl Send for PropositionalConjunction
impl Sync for PropositionalConjunction
impl Unpin for PropositionalConjunction
impl UnwindSafe for PropositionalConjunction
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§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit)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 moresource§impl<Value> Statistic for Valuewhere
Value: Display,
impl<Value> Statistic for Valuewhere
Value: Display,
source§fn log(&self, statistic_logger: StatisticLogger)
fn log(&self, statistic_logger: StatisticLogger)
Logs the
Statistic using the provided StatisticLogger.