Struct sdml_core::model::constraints::QuantifiedVariableBinding
source · pub struct QuantifiedVariableBinding { /* private fields */ }
Implementations§
source§impl QuantifiedVariableBinding
impl QuantifiedVariableBinding
pub fn new(quantifier: Quantifier, binding: QuantifiedVariable) -> Self
pub fn new_self(quantifier: Quantifier) -> Self
pub fn new_existential(binding: QuantifiedVariable) -> Self
pub fn new_universal(binding: QuantifiedVariable) -> Self
pub const fn quantifier(&self) -> &Quantifier
pub fn set_quantifier(&mut self, quantifier: Quantifier)
pub fn is_existential(&self) -> bool
pub fn is_universal(&self) -> bool
pub fn binding(&self) -> Option<&QuantifiedVariable>
pub fn is_bound_to_variable(&self) -> bool
pub fn set_binding_to_variable(&mut self, binding: QuantifiedVariable)
pub fn is_bound_to_self(&self) -> bool
pub fn set_binding_to_self(&mut self)
Trait Implementations§
source§impl Clone for QuantifiedVariableBinding
impl Clone for QuantifiedVariableBinding
source§fn clone(&self) -> QuantifiedVariableBinding
fn clone(&self) -> QuantifiedVariableBinding
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 QuantifiedVariableBinding
impl Debug for QuantifiedVariableBinding
source§impl<'de> Deserialize<'de> for QuantifiedVariableBinding
impl<'de> Deserialize<'de> for QuantifiedVariableBinding
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 HasSourceSpan for QuantifiedVariableBinding
impl HasSourceSpan for QuantifiedVariableBinding
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 QuantifiedVariableBinding
impl RefUnwindSafe for QuantifiedVariableBinding
impl Send for QuantifiedVariableBinding
impl Sync for QuantifiedVariableBinding
impl Unpin for QuantifiedVariableBinding
impl UnwindSafe for QuantifiedVariableBinding
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
source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)