Enum sdml_core::model::QuantifiedSentence
source · pub enum QuantifiedSentence {
Universal(BoundSentence),
Existential(BoundSentence),
}
Expand description
Corresponds to the grammar rule quantified_sentence
.
Such a sentence may be either universally or existentially quantified.
Variants§
Universal(BoundSentence)
Corresponds to the grammar rule universal
. Introduced with the keyword forall
or the operator $\forall$.
Existential(BoundSentence)
Corresponds to the grammar rule existential
. Introduced with the keyword exists
or the operator $\exists$.
Implementations§
source§impl QuantifiedSentence
impl QuantifiedSentence
pub fn is_universal(&self) -> bool
pub fn as_universal(&self) -> Option<&BoundSentence>
pub fn is_existential(&self) -> bool
pub fn as_existential(&self) -> Option<&BoundSentence>
Trait Implementations§
source§impl Clone for QuantifiedSentence
impl Clone for QuantifiedSentence
source§fn clone(&self) -> QuantifiedSentence
fn clone(&self) -> QuantifiedSentence
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 QuantifiedSentence
impl Debug for QuantifiedSentence
source§impl<'de> Deserialize<'de> for QuantifiedSentence
impl<'de> Deserialize<'de> for QuantifiedSentence
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<QuantifiedSentence> for ConstraintSentence
impl From<QuantifiedSentence> for ConstraintSentence
source§fn from(v: QuantifiedSentence) -> Self
fn from(v: QuantifiedSentence) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl RefUnwindSafe for QuantifiedSentence
impl Send for QuantifiedSentence
impl Sync for QuantifiedSentence
impl Unpin for QuantifiedSentence
impl UnwindSafe for QuantifiedSentence
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