pub enum OwlLiteral {
Typed {
lexical: String,
datatype: Iri<String>,
},
LanguageTagged {
lexical: String,
language: String,
},
}Expand description
A literal value used in OWL structural annotations and axioms.
Variants§
Implementations§
Source§impl OwlLiteral
impl OwlLiteral
Sourcepub fn typed(lexical: impl Into<String>, datatype: Iri<String>) -> Self
pub fn typed(lexical: impl Into<String>, datatype: Iri<String>) -> Self
Create a typed literal.
Sourcepub fn language_tagged(
lexical: impl Into<String>,
language: impl Into<String>,
) -> Result<Self, StructuralModelError>
pub fn language_tagged( lexical: impl Into<String>, language: impl Into<String>, ) -> Result<Self, StructuralModelError>
Create a language-tagged literal.
§Errors
Returns StructuralModelError::Empty when the language tag is empty.
Trait Implementations§
Source§impl Clone for OwlLiteral
impl Clone for OwlLiteral
Source§fn clone(&self) -> OwlLiteral
fn clone(&self) -> OwlLiteral
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 OwlLiteral
impl Debug for OwlLiteral
Source§impl<'de> Deserialize<'de> for OwlLiteral
impl<'de> Deserialize<'de> for OwlLiteral
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
impl Eq for OwlLiteral
Source§impl Hash for OwlLiteral
impl Hash for OwlLiteral
Source§impl PartialEq for OwlLiteral
impl PartialEq for OwlLiteral
Source§impl Serialize for OwlLiteral
impl Serialize for OwlLiteral
impl StructuralPartialEq for OwlLiteral
Auto Trait Implementations§
impl Freeze for OwlLiteral
impl RefUnwindSafe for OwlLiteral
impl Send for OwlLiteral
impl Sync for OwlLiteral
impl Unpin for OwlLiteral
impl UnsafeUnpin for OwlLiteral
impl UnwindSafe for OwlLiteral
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