pub enum GraphNameRef<'a> {
NamedNode(NamedNodeRef<'a>),
BlankNode(BlankNodeRef<'a>),
DefaultGraph,
}
Expand description
A borrowed graph name
It is the union of IRIs, blank nodes, and the default graph name.
Variants§
Implementations§
Source§impl GraphNameRef<'_>
impl GraphNameRef<'_>
pub fn is_named_node(&self) -> bool
pub fn is_blank_node(&self) -> bool
pub fn is_default_graph(&self) -> bool
pub fn into_owned(self) -> GraphName
Trait Implementations§
Source§impl<'a> Clone for GraphNameRef<'a>
impl<'a> Clone for GraphNameRef<'a>
Source§fn clone(&self) -> GraphNameRef<'a>
fn clone(&self) -> GraphNameRef<'a>
Returns a duplicate 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<'a> Debug for GraphNameRef<'a>
impl<'a> Debug for GraphNameRef<'a>
Source§impl<'a> Default for GraphNameRef<'a>
impl<'a> Default for GraphNameRef<'a>
Source§fn default() -> GraphNameRef<'a>
fn default() -> GraphNameRef<'a>
Returns the “default value” for a type. Read more
Source§impl Display for GraphNameRef<'_>
impl Display for GraphNameRef<'_>
Source§impl<'a> From<&'a BlankNode> for GraphNameRef<'a>
impl<'a> From<&'a BlankNode> for GraphNameRef<'a>
Source§fn from(node: &'a BlankNode) -> GraphNameRef<'a>
fn from(node: &'a BlankNode) -> GraphNameRef<'a>
Converts to this type from the input type.
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<'a> From<&'a NamedNode> for GraphNameRef<'a>
impl<'a> From<&'a NamedNode> for GraphNameRef<'a>
Source§fn from(node: &'a NamedNode) -> GraphNameRef<'a>
fn from(node: &'a NamedNode) -> GraphNameRef<'a>
Converts to this type from the input type.
Source§impl<'a> From<&'a NamedOrBlankNode> for GraphNameRef<'a>
impl<'a> From<&'a NamedOrBlankNode> for GraphNameRef<'a>
Source§fn from(node: &'a NamedOrBlankNode) -> GraphNameRef<'a>
fn from(node: &'a NamedOrBlankNode) -> GraphNameRef<'a>
Converts to this type from the input type.
Source§impl<'a> From<&'a PlainTermScalar> for GraphNameRef<'a>
impl<'a> From<&'a PlainTermScalar> for GraphNameRef<'a>
Source§fn from(value: &'a PlainTermScalar) -> GraphNameRef<'a>
fn from(value: &'a PlainTermScalar) -> GraphNameRef<'a>
Converts to this type from the input type.
Source§impl<'a> From<BlankNodeRef<'a>> for GraphNameRef<'a>
impl<'a> From<BlankNodeRef<'a>> for GraphNameRef<'a>
Source§fn from(node: BlankNodeRef<'a>) -> GraphNameRef<'a>
fn from(node: BlankNodeRef<'a>) -> GraphNameRef<'a>
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<'a> From<NamedNodeRef<'a>> for GraphNameRef<'a>
impl<'a> From<NamedNodeRef<'a>> for GraphNameRef<'a>
Source§fn from(node: NamedNodeRef<'a>) -> GraphNameRef<'a>
fn from(node: NamedNodeRef<'a>) -> GraphNameRef<'a>
Converts to this type from the input type.
Source§impl<'a> From<NamedOrBlankNodeRef<'a>> for GraphNameRef<'a>
impl<'a> From<NamedOrBlankNodeRef<'a>> for GraphNameRef<'a>
Source§fn from(node: NamedOrBlankNodeRef<'a>) -> GraphNameRef<'a>
fn from(node: NamedOrBlankNodeRef<'a>) -> GraphNameRef<'a>
Converts to this type from the input type.
Source§impl<'a> Hash for GraphNameRef<'a>
impl<'a> Hash for GraphNameRef<'a>
Source§impl<'a> PartialEq for GraphNameRef<'a>
impl<'a> PartialEq for GraphNameRef<'a>
impl<'a> Copy for GraphNameRef<'a>
impl<'a> Eq for GraphNameRef<'a>
impl<'a> StructuralPartialEq for GraphNameRef<'a>
Auto Trait Implementations§
impl<'a> Freeze for GraphNameRef<'a>
impl<'a> RefUnwindSafe for GraphNameRef<'a>
impl<'a> Send for GraphNameRef<'a>
impl<'a> Sync for GraphNameRef<'a>
impl<'a> Unpin for GraphNameRef<'a>
impl<'a> UnwindSafe for GraphNameRef<'a>
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