pub enum ValidId<T = IriBuf, B = BlankIdBuf> {
Iri(T),
Blank(B),
}
Expand description
Valid node identifier.
Variants
Iri(T)
Blank(B)
Implementations
sourceimpl<T, B> ValidId<T, B>
impl<T, B> ValidId<T, B>
pub fn into_rdf_subject(self) -> Subject<T, B>
pub fn as_rdf_subject(&self) -> Subject<&T, &B>
Trait Implementations
sourceimpl<T, B, N> DisplayWithContext<N> for ValidId<T, B>where
N: Vocabulary<Iri = T, BlankId = B>,
impl<T, B, N> DisplayWithContext<N> for ValidId<T, B>where
N: Vocabulary<Iri = T, BlankId = B>,
sourceimpl<T, B, M, N> IntoJsonWithContextMeta<M, N> for ValidId<T, B>where
N: Vocabulary<Iri = T, BlankId = B>,
impl<T, B, M, N> IntoJsonWithContextMeta<M, N> for ValidId<T, B>where
N: Vocabulary<Iri = T, BlankId = B>,
fn into_json_meta_with(self, meta: M, context: &N) -> Meta<Value<M>, M>
sourceimpl<T, B> MappedEq<ValidId<T, B>> for ValidId<T, B>where
T: PartialEq<T>,
B: PartialEq<B>,
impl<T, B> MappedEq<ValidId<T, B>> for ValidId<T, B>where
T: PartialEq<T>,
B: PartialEq<B>,
type BlankId = B
sourcefn mapped_eq<'a, 'b, F>(&'a self, other: &ValidId<T, B>, f: F) -> boolwhere
F: Clone + Fn(&'a <ValidId<T, B> as MappedEq<ValidId<T, B>>>::BlankId) -> &'b <ValidId<T, B> as MappedEq<ValidId<T, B>>>::BlankId,
<ValidId<T, B> as MappedEq<ValidId<T, B>>>::BlankId: 'a + 'b,
fn mapped_eq<'a, 'b, F>(&'a self, other: &ValidId<T, B>, f: F) -> boolwhere
F: Clone + Fn(&'a <ValidId<T, B> as MappedEq<ValidId<T, B>>>::BlankId) -> &'b <ValidId<T, B> as MappedEq<ValidId<T, B>>>::BlankId,
<ValidId<T, B> as MappedEq<ValidId<T, B>>>::BlankId: 'a + 'b,
Structural equality with mapped blank identifiers. Read more
sourceimpl<T, B> Ord for ValidId<T, B>where
T: Ord,
B: Ord,
impl<T, B> Ord for ValidId<T, B>where
T: Ord,
B: Ord,
1.21.0 · sourceconst fn max(self, other: Self) -> Self
const fn max(self, other: Self) -> Self
Compares and returns the maximum of two values. Read more
1.21.0 · sourceconst fn min(self, other: Self) -> Self
const fn min(self, other: Self) -> Self
Compares and returns the minimum of two values. Read more
1.50.0 · sourceconst fn clamp(self, min: Self, max: Self) -> Selfwhere
Self: PartialOrd<Self>,
const fn clamp(self, min: Self, max: Self) -> Selfwhere
Self: PartialOrd<Self>,
Restrict a value to a certain interval. Read more
sourceimpl<T, B> PartialEq<ValidId<T, B>> for ValidId<T, B>where
T: PartialEq<T>,
B: PartialEq<B>,
impl<T, B> PartialEq<ValidId<T, B>> for ValidId<T, B>where
T: PartialEq<T>,
B: PartialEq<B>,
sourceimpl<T, B> PartialOrd<ValidId<T, B>> for ValidId<T, B>where
T: PartialOrd<T>,
B: PartialOrd<B>,
impl<T, B> PartialOrd<ValidId<T, B>> for ValidId<T, B>where
T: PartialOrd<T>,
B: PartialOrd<B>,
sourcefn partial_cmp(&self, other: &ValidId<T, B>) -> Option<Ordering>
fn partial_cmp(&self, other: &ValidId<T, B>) -> Option<Ordering>
1.0.0 · sourceconst fn le(&self, other: &Rhs) -> bool
const 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<T, B> StrippedHash for ValidId<T, B>where
T: Hash,
B: Hash,
impl<T, B> StrippedHash for ValidId<T, B>where
T: Hash,
B: Hash,
fn stripped_hash<H>(&self, state: &mut H)where
H: Hasher,
sourceimpl<T, B> StrippedPartialEq<ValidId<T, B>> for ValidId<T, B>where
T: PartialEq<T>,
B: PartialEq<B>,
impl<T, B> StrippedPartialEq<ValidId<T, B>> for ValidId<T, B>where
T: PartialEq<T>,
B: PartialEq<B>,
fn stripped_eq(&self, other: &ValidId<T, B>) -> bool
impl<T, B> Copy for ValidId<T, B>where
T: Copy,
B: Copy,
impl<T, B> Eq for ValidId<T, B>where
T: Eq,
B: Eq,
impl<T, B> StrippedEq for ValidId<T, B>where
T: Eq,
B: Eq,
impl<T, B> StructuralEq for ValidId<T, B>
impl<T, B> StructuralPartialEq for ValidId<T, B>
Auto Trait Implementations
impl<T, B> RefUnwindSafe for ValidId<T, B>where
B: RefUnwindSafe,
T: RefUnwindSafe,
impl<T, B> Send for ValidId<T, B>where
B: Send,
T: Send,
impl<T, B> Sync for ValidId<T, B>where
B: Sync,
T: Sync,
impl<T, B> Unpin for ValidId<T, B>where
B: Unpin,
T: Unpin,
impl<T, B> UnwindSafe for ValidId<T, B>where
B: UnwindSafe,
T: 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.