Struct sdml_core::model::constraints::Inequation
source · pub struct Inequation { /* private fields */ }
Implementations§
source§impl Inequation
impl Inequation
pub fn new<L, R>( left_operand: L, relation: InequalityRelation, right_operand: R ) -> Self
pub fn not_equal<L, R>(left_operand: L, right_operand: R) -> Self
pub fn less_than<L, R>(left_operand: L, right_operand: R) -> Self
pub fn less_than_or_greater<L, R>(left_operand: L, right_operand: R) -> Self
pub fn greater_than<L, R>(left_operand: L, right_operand: R) -> Self
pub fn greater_than_or_equal<L, R>(left_operand: L, right_operand: R) -> Self
pub const fn left_operand(&self) -> &Term
pub fn set_left_operand(&mut self, left_operand: Term)
pub const fn relation(&self) -> &InequalityRelation
pub fn set_relation(&mut self, relation: InequalityRelation)
pub fn is_not_equal(&self) -> bool
pub fn is_less_than(&self) -> bool
pub fn is_greater_than(&self) -> bool
pub fn is_less_than_or_equal(&self) -> bool
pub fn is_greater_than_or_equal(&self) -> bool
pub const fn right_operand(&self) -> &Term
pub fn set_right_operand(&mut self, right_operand: Term)
Trait Implementations§
source§impl Clone for Inequation
impl Clone for Inequation
source§fn clone(&self) -> Inequation
fn clone(&self) -> Inequation
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 Inequation
impl Debug for Inequation
source§impl<'de> Deserialize<'de> for Inequation
impl<'de> Deserialize<'de> for Inequation
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
source§impl From<Inequation> for SimpleSentence
impl From<Inequation> for SimpleSentence
source§fn from(v: Inequation) -> Self
fn from(v: Inequation) -> Self
Converts to this type from the input type.
source§impl HasSourceSpan for Inequation
impl HasSourceSpan for Inequation
fn with_source_span(self, span: Span) -> Self
fn source_span(&self) -> Option<&Span>
fn set_source_span(&mut self, span: Span)
fn unset_source_span(&mut self)
fn has_source_span(&self) -> bool
Auto Trait Implementations§
impl RefUnwindSafe for Inequation
impl Send for Inequation
impl Sync for Inequation
impl Unpin for Inequation
impl UnwindSafe for Inequation
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