pub enum Subject<I = IriBuf, B = BlankIdBuf> {
Blank(B),
Iri(I),
}Expand description
RDF Subject.
Either a blank node identifier or an IRI.
Variants
Blank(B)
Blank node identifier.
Iri(I)
IRI.
Implementations
sourceimpl Subject
impl Subject
pub fn as_subject_ref(&self) -> SubjectRef<'_>
pub fn as_graph_label_ref(&self) -> GraphLabelRef<'_>
pub fn as_term_ref(&self) -> TermRef<'_>
Trait Implementations
sourceimpl<'a> From<&'a Subject<IriBuf, BlankIdBuf>> for SubjectRef<'a>
impl<'a> From<&'a Subject<IriBuf, BlankIdBuf>> for SubjectRef<'a>
Auto Trait Implementations
impl<I, B> RefUnwindSafe for Subject<I, B> where
B: RefUnwindSafe,
I: RefUnwindSafe,
impl<I, B> Send for Subject<I, B> where
B: Send,
I: Send,
impl<I, B> Sync for Subject<I, B> where
B: Sync,
I: Sync,
impl<I, B> Unpin for Subject<I, B> where
B: Unpin,
I: Unpin,
impl<I, B> UnwindSafe for Subject<I, B> where
B: UnwindSafe,
I: UnwindSafe,
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
sourceimpl<T> ToOwned for T where
T: Clone,
impl<T> ToOwned for T where
T: Clone,
type Owned = T
type Owned = T
The resulting type after obtaining ownership.
sourcefn clone_into(&self, target: &mut T)
fn clone_into(&self, target: &mut T)
🔬 This is a nightly-only experimental API. (
toowned_clone_into)Uses borrowed data to replace owned data, usually by cloning. Read more