Struct sdml_core::model::constraints::QuantifiedSentence
source · pub struct QuantifiedSentence { /* private fields */ }
Expand description
Corresponds to the grammar rule quantified_sentence
.
Such a sentence may be either universally or existentially quantified.
Implementations§
source§impl QuantifiedSentence
impl QuantifiedSentence
pub fn new<S>(binding: QuantifiedVariableBinding, body: S) -> Selfwhere
S: Into<ConstraintSentence>,
pub const fn binding(&self) -> &QuantifiedVariableBinding
pub fn set_binding(&mut self, binding: QuantifiedVariableBinding)
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.
source§impl From<QuantifiedSentence> for EnvironmentDefBody
impl From<QuantifiedSentence> for EnvironmentDefBody
source§fn from(v: QuantifiedSentence) -> Self
fn from(v: QuantifiedSentence) -> Self
Converts to this type from the input type.
source§impl HasBody<ConstraintSentence> for QuantifiedSentence
impl HasBody<ConstraintSentence> for QuantifiedSentence
source§fn body(&self) -> &ConstraintSentence
fn body(&self) -> &ConstraintSentence
Get the body of the enclosing type.
source§fn body_mut(&mut self) -> &mut ConstraintSentence
fn body_mut(&mut self) -> &mut ConstraintSentence
Get a mutable reference to the body of the enclosing type.
source§fn set_body(&mut self, body: ConstraintSentence)
fn set_body(&mut self, body: ConstraintSentence)
Set the body of the enclosing type.
source§impl HasBody<QuantifiedSentence> for SequenceBuilder
impl HasBody<QuantifiedSentence> for SequenceBuilder
source§fn body(&self) -> &QuantifiedSentence
fn body(&self) -> &QuantifiedSentence
Get the body of the enclosing type.
source§fn body_mut(&mut self) -> &mut QuantifiedSentence
fn body_mut(&mut self) -> &mut QuantifiedSentence
Get a mutable reference to the body of the enclosing type.
source§fn set_body(&mut self, body: QuantifiedSentence)
fn set_body(&mut self, body: QuantifiedSentence)
Set the body of the enclosing type.
source§impl HasSourceSpan for QuantifiedSentence
impl HasSourceSpan for QuantifiedSentence
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 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