pub struct PhraseAtomicFact {
pub definition: TypeDefinitionCommon,
pub name: String,
pub ty: AtomicType,
pub range: Option<Domain>,
}
Expand description
Represents the definition of an atomic Fact, e.g.,
Fact citizen Identified by String.
Fields§
§definition: TypeDefinitionCommon
The common fields for this definition.
name: String
The name of the new Fact.
ty: AtomicType
The type of the new Fact, which must be one of eFLINT’s builtin types. Defaults to “String” if omitted.
range: Option<Domain>
If non-empty, then the atomic fact has a closed domain of the given values.
Trait Implementations§
Source§impl Clone for PhraseAtomicFact
impl Clone for PhraseAtomicFact
Source§fn clone(&self) -> PhraseAtomicFact
fn clone(&self) -> PhraseAtomicFact
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 PhraseAtomicFact
impl Debug for PhraseAtomicFact
Source§impl<'de> Deserialize<'de> for PhraseAtomicFact
impl<'de> Deserialize<'de> for PhraseAtomicFact
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 Freeze for PhraseAtomicFact
impl RefUnwindSafe for PhraseAtomicFact
impl Send for PhraseAtomicFact
impl Sync for PhraseAtomicFact
impl Unpin for PhraseAtomicFact
impl UnwindSafe for PhraseAtomicFact
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