Struct sdml_core::model::BoundSentence
source · pub struct BoundSentence { /* private fields */ }
Expand description
Corresponds to the inner part of the grammar rule quantified_sentence
,
and the rule quantified_body
.
The body of a bound sentence is a ConstraintSentence
, and the bindings are an
ordered list of [QuantifierBinding
]s
Implementations§
source§impl BoundSentence
impl BoundSentence
pub fn new<B, S>(bindings: B, body: S) -> Selfwhere B: Into<Vec<QuantifierBinding>>, S: 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 has_bindings(&self) -> bool
pub fn bindings_len(&self) -> usize
pub fn bindings(&self) -> impl Iterator<Item = &QuantifierBinding>
pub fn bindings_mut(&mut self) -> impl Iterator<Item = &mut QuantifierBinding>
pub fn add_to_bindings<I>(&mut self, value: I)where I: Into<QuantifierBinding>,
pub fn extend_bindings<I>(&mut self, extension: I)where I: IntoIterator<Item = QuantifierBinding>,
pub fn body(&self) -> &ConstraintSentence
pub fn set_body(&mut self, body: ConstraintSentence)
Trait Implementations§
source§impl Clone for BoundSentence
impl Clone for BoundSentence
source§fn clone(&self) -> BoundSentence
fn clone(&self) -> BoundSentence
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 BoundSentence
impl Debug for BoundSentence
source§impl<'de> Deserialize<'de> for BoundSentence
impl<'de> Deserialize<'de> for BoundSentence
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
Auto Trait Implementations§
impl RefUnwindSafe for BoundSentence
impl Send for BoundSentence
impl Sync for BoundSentence
impl Unpin for BoundSentence
impl UnwindSafe for BoundSentence
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