Struct json_ld_syntax::context::definition::Vocab
source · [−]pub struct Vocab(_);
Implementations
sourceimpl Vocab
impl Vocab
pub fn as_iri(&self) -> Option<Iri<'_>>
pub fn as_compact_iri(&self) -> Option<&CompactIri>
pub fn as_blank_id(&self) -> Option<&BlankId>
pub fn as_str(&self) -> &str
pub fn into_string(self) -> String
Trait Implementations
sourceimpl<M> IntoJsonMeta<M> for Vocab
impl<M> IntoJsonMeta<M> for Vocab
fn into_json_meta(self, meta: M) -> Meta<Value<M>, M>
sourceimpl Ord for Vocab
impl Ord for Vocab
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 PartialOrd<Vocab> for Vocab
impl PartialOrd<Vocab> for Vocab
sourcefn partial_cmp(&self, other: &Vocab) -> Option<Ordering>
fn partial_cmp(&self, other: &Vocab) -> 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 StrippedPartialEq<Vocab> for Vocab
impl StrippedPartialEq<Vocab> for Vocab
fn stripped_eq(&self, other: &Self) -> bool
sourceimpl<M> TryFromStrippedJson<M> for Vocab
impl<M> TryFromStrippedJson<M> for Vocab
fn try_from_stripped_json(value: Value<M>) -> Result<Self, InvalidContext>
impl Eq for Vocab
impl StructuralEq for Vocab
impl StructuralPartialEq for Vocab
Auto Trait Implementations
impl RefUnwindSafe for Vocab
impl Send for Vocab
impl Sync for Vocab
impl Unpin for Vocab
impl UnwindSafe for Vocab
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.