pub enum GraphName<'a> {
NamedNode(NamedNode<'a>),
BlankNode(BlankNode<'a>),
}
Expand description
A restriction of Term that can be used in the graph name position.
The default string formatter is returning an N-Triples, Turtle and SPARQL compatible representation.
Variants§
Trait Implementations§
source§impl<'a> From<GraphName<'a>> for GeneralizedTerm<'a>
Available on crate feature generalized
only.
impl<'a> From<GraphName<'a>> for GeneralizedTerm<'a>
Available on crate feature
generalized
only.source§fn from(other: GraphName<'a>) -> GeneralizedTerm<'a>
fn from(other: GraphName<'a>) -> GeneralizedTerm<'a>
Converts to this type from the input type.
source§impl<'a> TryFrom<GeneralizedTerm<'a>> for GraphName<'a>
Available on crate feature generalized
only.
impl<'a> TryFrom<GeneralizedTerm<'a>> for GraphName<'a>
Available on crate feature
generalized
only.§type Error = StrictRdfError
type Error = StrictRdfError
The type returned in the event of a conversion error.
source§fn try_from(other: GeneralizedTerm<'a>) -> Result<GraphName<'a>, StrictRdfError>
fn try_from(other: GeneralizedTerm<'a>) -> Result<GraphName<'a>, StrictRdfError>
Performs the conversion.
impl<'a> Copy for GraphName<'a>
impl<'a> Eq for GraphName<'a>
impl<'a> StructuralPartialEq for GraphName<'a>
Auto Trait Implementations§
impl<'a> Freeze for GraphName<'a>
impl<'a> RefUnwindSafe for GraphName<'a>
impl<'a> Send for GraphName<'a>
impl<'a> Sync for GraphName<'a>
impl<'a> Unpin for GraphName<'a>
impl<'a> UnwindSafe for GraphName<'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§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)