pub struct PredicateConstraints {
pub properties: Vec<PredicateProperty>,
pub value_ranges: Vec<Option<ValueRange>>,
pub functional_dependencies: Vec<FunctionalDependency>,
}Expand description
Constraints associated with a predicate
Fields§
§properties: Vec<PredicateProperty>Logical properties of the predicate
value_ranges: Vec<Option<ValueRange>>Value ranges for each argument (None if unconstrained)
functional_dependencies: Vec<FunctionalDependency>Functional dependencies between arguments
Implementations§
Source§impl PredicateConstraints
impl PredicateConstraints
pub fn new() -> Self
pub fn with_property(self, property: PredicateProperty) -> Self
pub fn with_value_range(self, arg_index: usize, range: ValueRange) -> Self
pub fn with_functional_dependency( self, dependency: FunctionalDependency, ) -> Self
pub fn has_property(&self, property: &PredicateProperty) -> bool
pub fn is_symmetric(&self) -> bool
pub fn is_transitive(&self) -> bool
pub fn is_reflexive(&self) -> bool
Trait Implementations§
Source§impl Clone for PredicateConstraints
impl Clone for PredicateConstraints
Source§fn clone(&self) -> PredicateConstraints
fn clone(&self) -> PredicateConstraints
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 moreSource§impl Debug for PredicateConstraints
impl Debug for PredicateConstraints
Source§impl Default for PredicateConstraints
impl Default for PredicateConstraints
Source§fn default() -> PredicateConstraints
fn default() -> PredicateConstraints
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for PredicateConstraints
impl<'de> Deserialize<'de> for PredicateConstraints
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations§
impl Freeze for PredicateConstraints
impl RefUnwindSafe for PredicateConstraints
impl Send for PredicateConstraints
impl Sync for PredicateConstraints
impl Unpin for PredicateConstraints
impl UnwindSafe for PredicateConstraints
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