Struct sdml_core::model::constraints::UnaryBooleanSentence
source · pub struct UnaryBooleanSentence { /* private fields */ }
Expand description
Holds the left and right operands in the rules conjunction
, disjunction
,
exclusive_disjunction
, implication
, and biconditional
.
Implementations§
source§impl UnaryBooleanSentence
impl UnaryBooleanSentence
pub fn new<R>(operand: R) -> Selfwhere
R: Into<ConstraintSentence>,
pub fn negate<R>(operand: R) -> Selfwhere
R: Into<ConstraintSentence>,
pub fn operator(&self) -> ConnectiveOperator
pub const fn operand(&self) -> &ConstraintSentence
pub fn set_operand(&mut self, operand: ConstraintSentence)
Trait Implementations§
source§impl Clone for UnaryBooleanSentence
impl Clone for UnaryBooleanSentence
source§fn clone(&self) -> UnaryBooleanSentence
fn clone(&self) -> UnaryBooleanSentence
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 UnaryBooleanSentence
impl Debug for UnaryBooleanSentence
source§impl<'de> Deserialize<'de> for UnaryBooleanSentence
impl<'de> Deserialize<'de> for UnaryBooleanSentence
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<UnaryBooleanSentence> for BooleanSentence
impl From<UnaryBooleanSentence> for BooleanSentence
source§fn from(v: UnaryBooleanSentence) -> Self
fn from(v: UnaryBooleanSentence) -> Self
Converts to this type from the input type.
source§impl HasSourceSpan for UnaryBooleanSentence
impl HasSourceSpan for UnaryBooleanSentence
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 UnaryBooleanSentence
impl Send for UnaryBooleanSentence
impl Sync for UnaryBooleanSentence
impl Unpin for UnaryBooleanSentence
impl UnwindSafe for UnaryBooleanSentence
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