pub enum AtomicType {
String,
Integer,
}
Expand description
The possible types that are considered as open-ended domains for atomic facts.
Variants§
Implementations§
Source§impl AtomicType
impl AtomicType
Sourcepub fn string() -> Self
pub fn string() -> Self
Creates a new AtomicType::String
(but in such a way we can use it as a serde default).
§Returns
A new instance of self that is String.
Sourcepub fn integer() -> Self
pub fn integer() -> Self
Creates a new AtomicType::Integer
(but in such a way we can use it as a serde default).
§Returns
A new instance of self that is Integer.
Trait Implementations§
Source§impl Clone for AtomicType
impl Clone for AtomicType
Source§fn clone(&self) -> AtomicType
fn clone(&self) -> AtomicType
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 AtomicType
impl Debug for AtomicType
Source§impl<'de> Deserialize<'de> for AtomicType
impl<'de> Deserialize<'de> for AtomicType
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 Display for AtomicType
impl Display for AtomicType
Source§impl EnumDebug for AtomicType
impl EnumDebug for AtomicType
Source§fn type_name() -> &'static str
fn type_name() -> &'static str
Returns the static name of the type used for EnumDebug-printing. Read more
Source§fn variant_names() -> &'static [&'static str]
fn variant_names() -> &'static [&'static str]
Returns all variants in the trait as a list of names. Read more
Source§fn variant_name(&self) -> &'static str
fn variant_name(&self) -> &'static str
Returns the static name of the variant. Read more
Source§fn variant(&self) -> EnumDebugFormatter<'_, Self>
fn variant(&self) -> EnumDebugFormatter<'_, Self>
Returns a formatter for this enum that writes its variant name. Read more
Source§impl FromStr for AtomicType
impl FromStr for AtomicType
Source§impl Hash for AtomicType
impl Hash for AtomicType
Source§impl PartialEq for AtomicType
impl PartialEq for AtomicType
Source§impl Serialize for AtomicType
impl Serialize for AtomicType
impl Copy for AtomicType
impl Eq for AtomicType
impl StructuralPartialEq for AtomicType
Auto Trait Implementations§
impl Freeze for AtomicType
impl RefUnwindSafe for AtomicType
impl Send for AtomicType
impl Sync for AtomicType
impl Unpin for AtomicType
impl UnwindSafe for AtomicType
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