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>
sourceimpl<I: Ord, B: Ord> Ord for Subject<I, B>
impl<I: Ord, B: Ord> Ord for Subject<I, B>
sourceimpl<I1: PartialEq<I2>, B1: PartialEq<B2>, I2, B2> PartialEq<Subject<I2, B2>> for Subject<I1, B1>
impl<I1: PartialEq<I2>, B1: PartialEq<B2>, I2, B2> PartialEq<Subject<I2, B2>> for Subject<I1, B1>
sourceimpl<I1: PartialOrd<I2>, B1: PartialOrd<B2>, I2, B2> PartialOrd<Subject<I2, B2>> for Subject<I1, B1>
impl<I1: PartialOrd<I2>, B1: PartialOrd<B2>, I2, B2> PartialOrd<Subject<I2, B2>> for Subject<I1, B1>
sourcefn partial_cmp(&self, other: &Subject<I2, B2>) -> Option<Ordering>
fn partial_cmp(&self, other: &Subject<I2, B2>) -> Option<Ordering>
This method returns an ordering between self and other values if one exists. Read more
1.0.0 · sourcefn lt(&self, other: &Rhs) -> bool
fn lt(&self, other: &Rhs) -> bool
This method tests less than (for self and other) and is used by the < operator. Read more
1.0.0 · sourcefn le(&self, other: &Rhs) -> bool
fn le(&self, other: &Rhs) -> bool
This method tests less than or equal to (for self and other) and is used by the <=
operator. Read more
impl<I: Copy, B: Copy> Copy for Subject<I, B>
impl<I: Eq, B: Eq> Eq for Subject<I, B>
impl<I, B> StructuralEq for Subject<I, B>
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