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>
1.21.0 · sourcefn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
1.21.0 · sourcefn min(self, other: Self) -> Selfwhere
Self: Sized,
fn min(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the minimum of two values. Read more
1.50.0 · sourcefn clamp(self, min: Self, max: Self) -> Selfwhere
Self: Sized + PartialOrd<Self>,
fn clamp(self, min: Self, max: Self) -> Selfwhere
Self: Sized + PartialOrd<Self>,
Restrict a value to a certain interval. Read more
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>
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 moresourceimpl<I: Display, B: Display> RdfDisplay for Subject<I, B>
impl<I: Display, B: Display> RdfDisplay for Subject<I, B>
fn rdf_fmt(&self, f: &mut Formatter<'_>) -> Result
fn rdf_display(&self) -> RdfDisplayed<&Self>
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 Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
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