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>
impl<'a> From<GraphName<'a>> for GeneralizedTerm<'a>
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>
impl<'a> TryFrom<GeneralizedTerm<'a>> for GraphName<'a>
Source§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