pub enum HeapTerm {
Iri(String),
BNode(String),
Literal(String),
LiteralWithDatatype(String, String),
LiteralWithLanguage(String, String),
}
Expand description
A heap-allocated term.
Variants§
Iri(String)
BNode(String)
Literal(String)
LiteralWithDatatype(String, String)
LiteralWithLanguage(String, String)
Implementations§
Source§impl HeapTerm
impl HeapTerm
pub fn iri(value: impl AsRef<str>) -> Self
pub fn bnode(id: impl AsRef<str>) -> Self
pub fn literal(value: impl AsRef<str>) -> Self
pub fn literal_with_language( value: impl AsRef<str>, language: impl AsRef<str>, ) -> Self
pub fn literal_with_datatype( value: impl AsRef<str>, datatype: impl AsRef<str>, ) -> Self
Trait Implementations§
Source§impl<'de> Deserialize<'de> for HeapTerm
impl<'de> Deserialize<'de> for HeapTerm
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 Ord for HeapTerm
impl Ord for HeapTerm
Source§impl PartialOrd for HeapTerm
impl PartialOrd for HeapTerm
impl Eq for HeapTerm
impl StructuralPartialEq for HeapTerm
Auto Trait Implementations§
impl Freeze for HeapTerm
impl RefUnwindSafe for HeapTerm
impl Send for HeapTerm
impl Sync for HeapTerm
impl Unpin for HeapTerm
impl UnwindSafe for HeapTerm
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