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 const 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 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 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 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 Freeze for UnaryBooleanSentence
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