Enum json_ld_core::id::ValidId
source · pub enum ValidId<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<IriBuf, BlankIdBuf>
impl Subject<IriBuf, BlankIdBuf>
pub fn as_subject_ref(&self) -> Subject<Iri<'_>, &BlankId>
pub fn as_graph_label_ref(&self) -> Subject<Iri<'_>, &BlankId>
pub fn as_term_ref(
&self
) -> Term<Iri<'_>, &BlankId, &Literal<StringLiteral, IriBuf, LanguageTagBuf<Vec<u8, Global>>>>
Trait Implementations
sourceimpl<I, B, V> AsRefWithContext<str, V> for Subject<I, B>where
V: Vocabulary<Iri = I, BlankId = B>,
impl<I, B, V> AsRefWithContext<str, V> for Subject<I, B>where
V: Vocabulary<Iri = I, BlankId = B>,
fn as_ref_with(&'a self, vocabulary: &'a V) -> &'a str
sourceimpl<I, B, V> DisplayWithContext<V> for Subject<I, B>where
V: Vocabulary<Iri = I, BlankId = B>,
impl<I, B, V> DisplayWithContext<V> for Subject<I, B>where
V: Vocabulary<Iri = I, BlankId = B>,
sourceimpl<I, B> Ord for Subject<I, B>where
I: Ord,
B: Ord,
impl<I, B> Ord for Subject<I, B>where
I: Ord,
B: Ord,
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, B1, I2, B2> PartialEq<Subject<I2, B2>> for Subject<I1, B1>where
I1: PartialEq<I2>,
B1: PartialEq<B2>,
impl<I1, B1, I2, B2> PartialEq<Subject<I2, B2>> for Subject<I1, B1>where
I1: PartialEq<I2>,
B1: PartialEq<B2>,
sourceimpl<I1, B1, I2, B2> PartialOrd<Subject<I2, B2>> for Subject<I1, B1>where
I1: PartialOrd<I2>,
B1: PartialOrd<B2>,
impl<I1, B1, I2, B2> PartialOrd<Subject<I2, B2>> for Subject<I1, B1>where
I1: PartialOrd<I2>,
B1: PartialOrd<B2>,
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, B> RdfDisplay for Subject<I, B>where
I: Display,
B: Display,
impl<I, B> RdfDisplay for Subject<I, B>where
I: Display,
B: Display,
fn rdf_fmt(&self, f: &mut Formatter<'_>) -> Result<(), Error>
fn rdf_display(&self) -> RdfDisplayed<&Self>
sourceimpl<I, B, V> RdfDisplayWithContext<V> for Subject<I, B>where
V: Vocabulary<Iri = I, BlankId = B>,
impl<I, B, V> RdfDisplayWithContext<V> for Subject<I, B>where
V: Vocabulary<Iri = I, BlankId = B>,
sourceimpl<I, B> StrippedHash for Subject<I, B>where
I: Hash,
B: Hash,
impl<I, B> StrippedHash for Subject<I, B>where
I: Hash,
B: Hash,
fn stripped_hash<H>(&self, state: &mut H)where
H: Hasher,
sourceimpl<I, B> StrippedOrd for Subject<I, B>where
I: Ord,
B: Ord,
impl<I, B> StrippedOrd for Subject<I, B>where
I: Ord,
B: Ord,
fn stripped_cmp(&self, other: &Subject<I, B>) -> Ordering
sourceimpl<I, B, __I, __B> StrippedPartialEq<Subject<__I, __B>> for Subject<I, B>where
I: PartialEq<__I>,
B: PartialEq<__B>,
impl<I, B, __I, __B> StrippedPartialEq<Subject<__I, __B>> for Subject<I, B>where
I: PartialEq<__I>,
B: PartialEq<__B>,
fn stripped_eq(&self, other: &Subject<__I, __B>) -> bool
sourceimpl<I, B, __I, __B> StrippedPartialOrd<Subject<__I, __B>> for Subject<I, B>where
I: PartialOrd<__I>,
B: PartialOrd<__B>,
impl<I, B, __I, __B> StrippedPartialOrd<Subject<__I, __B>> for Subject<I, B>where
I: PartialOrd<__I>,
B: PartialOrd<__B>,
fn stripped_partial_cmp(&self, other: &Subject<__I, __B>) -> Option<Ordering>
impl<I, B> Copy for Subject<I, B>where
I: Copy,
B: Copy,
impl<I, B> Eq for Subject<I, B>where
I: Eq,
B: Eq,
impl<I, B> StrippedEq for Subject<I, B>where
I: Eq,
B: Eq,
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
sourceimpl<T> BorrowStripped for T
impl<T> BorrowStripped for T
sourceimpl<T> BorrowUnordered for T
impl<T> BorrowUnordered for T
sourceimpl<Q, K> Equivalent<K> for Qwhere
Q: Eq + ?Sized,
K: Borrow<Q> + ?Sized,
impl<Q, K> Equivalent<K> for Qwhere
Q: Eq + ?Sized,
K: Borrow<Q> + ?Sized,
fn equivalent(&self, key: &K) -> bool
sourceimpl<Q, K> Equivalent<K> for Qwhere
Q: Eq + ?Sized,
K: Borrow<Q> + ?Sized,
impl<Q, K> Equivalent<K> for Qwhere
Q: Eq + ?Sized,
K: Borrow<Q> + ?Sized,
sourcefn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key
and return true
if they are equal.