Enum sdml_core::model::constraints::EnvironmentDefBody
source · pub enum EnvironmentDefBody {
Function(FunctionDef),
Value(PredicateValue),
Sentence(ConstraintSentence),
}
Variants§
Implementations§
source§impl EnvironmentDefBody
impl EnvironmentDefBody
pub const fn is_value(&self) -> bool
pub const fn as_value(&self) -> Option<&PredicateValue>
pub const fn is_function(&self) -> bool
pub const fn as_function(&self) -> Option<&FunctionDef>
pub const fn is_sentence(&self) -> bool
pub const fn as_sentence(&self) -> Option<&ConstraintSentence>
Trait Implementations§
source§impl Clone for EnvironmentDefBody
impl Clone for EnvironmentDefBody
source§fn clone(&self) -> EnvironmentDefBody
fn clone(&self) -> EnvironmentDefBody
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 EnvironmentDefBody
impl Debug for EnvironmentDefBody
source§impl<'de> Deserialize<'de> for EnvironmentDefBody
impl<'de> Deserialize<'de> for EnvironmentDefBody
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<BooleanSentence> for EnvironmentDefBody
impl From<BooleanSentence> for EnvironmentDefBody
source§fn from(v: BooleanSentence) -> Self
fn from(v: BooleanSentence) -> Self
Converts to this type from the input type.
source§impl From<ConstraintSentence> for EnvironmentDefBody
impl From<ConstraintSentence> for EnvironmentDefBody
source§fn from(v: ConstraintSentence) -> Self
fn from(v: ConstraintSentence) -> Self
Converts to this type from the input type.
source§impl From<FunctionDef> for EnvironmentDefBody
impl From<FunctionDef> for EnvironmentDefBody
source§fn from(v: FunctionDef) -> Self
fn from(v: FunctionDef) -> Self
Converts to this type from the input type.
source§impl From<PredicateValue> for EnvironmentDefBody
impl From<PredicateValue> for EnvironmentDefBody
source§fn from(v: PredicateValue) -> Self
fn from(v: PredicateValue) -> 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 From<SequenceOfPredicateValues> for EnvironmentDefBody
impl From<SequenceOfPredicateValues> for EnvironmentDefBody
source§fn from(v: SequenceOfPredicateValues) -> Self
fn from(v: SequenceOfPredicateValues) -> Self
Converts to this type from the input type.
source§impl From<SimpleSentence> for EnvironmentDefBody
impl From<SimpleSentence> for EnvironmentDefBody
source§fn from(v: SimpleSentence) -> Self
fn from(v: SimpleSentence) -> Self
Converts to this type from the input type.
source§impl From<SimpleValue> for EnvironmentDefBody
impl From<SimpleValue> for EnvironmentDefBody
source§fn from(v: SimpleValue) -> Self
fn from(v: SimpleValue) -> Self
Converts to this type from the input type.
source§impl HasBody<EnvironmentDefBody> for EnvironmentDef
impl HasBody<EnvironmentDefBody> for EnvironmentDef
source§fn body(&self) -> &EnvironmentDefBody
fn body(&self) -> &EnvironmentDefBody
Get the body of the enclosing type.
source§fn body_mut(&mut self) -> &mut EnvironmentDefBody
fn body_mut(&mut self) -> &mut EnvironmentDefBody
Get a mutable reference to the body of the enclosing type.
source§fn set_body(&mut self, body: EnvironmentDefBody)
fn set_body(&mut self, body: EnvironmentDefBody)
Set the body of the enclosing type.
Auto Trait Implementations§
impl RefUnwindSafe for EnvironmentDefBody
impl Send for EnvironmentDefBody
impl Sync for EnvironmentDefBody
impl Unpin for EnvironmentDefBody
impl UnwindSafe for EnvironmentDefBody
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