Enum Term
pub enum Term {
NamedNode(NamedNode),
BlankNode(BlankNode),
Literal(Literal),
}Expand description
An owned RDF term
It is the union of IRIs, blank nodes, literals and triples (if the rdf-12 feature is enabled).
Variants§
Implementations§
§impl Term
impl Term
pub fn is_named_node(&self) -> bool
pub fn is_blank_node(&self) -> bool
pub fn is_literal(&self) -> bool
pub fn as_ref(&self) -> TermRef<'_>
Trait Implementations§
Source§impl From<&Term> for EncodedTerm
impl From<&Term> for EncodedTerm
§impl From<NamedNodeRef<'_>> for Term
impl From<NamedNodeRef<'_>> for Term
§fn from(node: NamedNodeRef<'_>) -> Term
fn from(node: NamedNodeRef<'_>) -> Term
Converts to this type from the input type.
§impl From<NamedOrBlankNode> for Term
impl From<NamedOrBlankNode> for Term
§fn from(node: NamedOrBlankNode) -> Term
fn from(node: NamedOrBlankNode) -> Term
Converts to this type from the input type.
§impl FromStr for Term
impl FromStr for Term
§impl TryFrom<Term> for NamedOrBlankNode
impl TryFrom<Term> for NamedOrBlankNode
impl Eq for Term
impl StructuralPartialEq for Term
Auto Trait Implementations§
impl Freeze for Term
impl RefUnwindSafe for Term
impl Send for Term
impl Sync for Term
impl Unpin for Term
impl UnsafeUnpin for Term
impl UnwindSafe for Term
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