Struct sdml_core::model::BinaryOperation
source · pub struct BinaryOperation { /* private fields */ }
Expand description
Holds the left and right operands in the rules conjunction
, disjunction
,
exclusive_disjunction
, implication
, and biconditional
.
Implementations§
source§impl BinaryOperation
impl BinaryOperation
pub fn new<L, R>(left_operand: L, right_operand: R) -> Selfwhere L: Into<ConstraintSentence>, R: Into<ConstraintSentence>,
pub fn with_ts_span(self, ts_span: Span) -> Self
pub fn has_ts_span(&self) -> bool
pub fn ts_span(&self) -> Option<&Span>
pub fn set_ts_span(&mut self, span: Span)
pub fn unset_ts_span(&mut self)
pub fn left_operand(&self) -> &ConstraintSentence
pub fn set_left_operand(&mut self, operand: ConstraintSentence)
pub fn right_operand(&self) -> &ConstraintSentence
pub fn set_right_operand(&mut self, operand: ConstraintSentence)
Trait Implementations§
source§impl Clone for BinaryOperation
impl Clone for BinaryOperation
source§fn clone(&self) -> BinaryOperation
fn clone(&self) -> BinaryOperation
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 BinaryOperation
impl Debug for BinaryOperation
source§impl<'de> Deserialize<'de> for BinaryOperation
impl<'de> Deserialize<'de> for BinaryOperation
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<BinaryOperation> for SimpleSentence
impl From<BinaryOperation> for SimpleSentence
source§fn from(v: BinaryOperation) -> Self
fn from(v: BinaryOperation) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl RefUnwindSafe for BinaryOperation
impl Send for BinaryOperation
impl Sync for BinaryOperation
impl Unpin for BinaryOperation
impl UnwindSafe for BinaryOperation
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