pub enum GraphName {
NamedNode(NamedNode),
BlankNode(BlankNode),
DefaultGraph,
}
Expand description
An owned graph name
It is the union of IRIs, blank nodes, and the default graph name.
Variants§
Implementations§
Source§impl GraphName
impl GraphName
pub fn is_named_node(&self) -> bool
pub fn is_blank_node(&self) -> bool
pub fn is_default_graph(&self) -> bool
pub fn as_ref(&self) -> GraphNameRef<'_>
Trait Implementations§
Source§impl<'a> From<&'a GraphName> for GraphNameRef<'a>
impl<'a> From<&'a GraphName> for GraphNameRef<'a>
Source§fn from(node: &'a GraphName) -> GraphNameRef<'a>
fn from(node: &'a GraphName) -> GraphNameRef<'a>
Converts to this type from the input type.
Source§impl From<BlankNodeRef<'_>> for GraphName
impl From<BlankNodeRef<'_>> for GraphName
Source§fn from(node: BlankNodeRef<'_>) -> GraphName
fn from(node: BlankNodeRef<'_>) -> GraphName
Converts to this type from the input type.
Source§impl<'a> From<GraphNameRef<'a>> for GraphName
impl<'a> From<GraphNameRef<'a>> for GraphName
Source§fn from(node: GraphNameRef<'a>) -> GraphName
fn from(node: GraphNameRef<'a>) -> GraphName
Converts to this type from the input type.
Source§impl From<NamedNodeRef<'_>> for GraphName
impl From<NamedNodeRef<'_>> for GraphName
Source§fn from(node: NamedNodeRef<'_>) -> GraphName
fn from(node: NamedNodeRef<'_>) -> GraphName
Converts to this type from the input type.
Source§impl From<NamedOrBlankNode> for GraphName
impl From<NamedOrBlankNode> for GraphName
Source§fn from(node: NamedOrBlankNode) -> GraphName
fn from(node: NamedOrBlankNode) -> GraphName
Converts to this type from the input type.
Source§impl From<NamedOrBlankNodeRef<'_>> for GraphName
impl From<NamedOrBlankNodeRef<'_>> for GraphName
Source§fn from(node: NamedOrBlankNodeRef<'_>) -> GraphName
fn from(node: NamedOrBlankNodeRef<'_>) -> GraphName
Converts to this type from the input type.
impl Eq for GraphName
impl StructuralPartialEq for GraphName
Auto Trait Implementations§
impl Freeze for GraphName
impl RefUnwindSafe for GraphName
impl Send for GraphName
impl Sync for GraphName
impl Unpin for GraphName
impl UnwindSafe for GraphName
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key
and return true
if they are equal.Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left
is true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left(&self)
returns true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read more