pub enum Subject<'a> {
NamedNode(NamedNode<'a>),
BlankNode(BlankNode<'a>),
Triple(&'a Triple<'a>),
}
Expand description
A restriction of Term that can be used as the subject of an RDF triple.
The default string formatter is returning an N-Triples, Turtle and SPARQL compatible representation.
Variants§
NamedNode(NamedNode<'a>)
BlankNode(BlankNode<'a>)
Triple(&'a Triple<'a>)
Rio does support RDF-star, which allows triples to be the subject of other triples.
Trait Implementations§
impl<'a> Copy for Subject<'a>
impl<'a> Eq for Subject<'a>
impl<'a> StructuralPartialEq for Subject<'a>
Auto Trait Implementations§
impl<'a> Freeze for Subject<'a>
impl<'a> RefUnwindSafe for Subject<'a>
impl<'a> Send for Subject<'a>
impl<'a> Sync for Subject<'a>
impl<'a> Unpin for Subject<'a>
impl<'a> UnwindSafe for Subject<'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
)