Struct json_ld::context::Definitions
source · [−]pub struct Definitions<T, B, L, M> { /* private fields */ }
Implementations
sourceimpl<T, B, L, M> Definitions<T, B, L, M>
impl<T, B, L, M> Definitions<T, B, L, M>
pub fn into_parts(
self
) -> (HashMap<Key, NormalTermDefinition<T, B, L, M>, RandomState>, Option<TypeTermDefinition>)
pub fn len(&self) -> usize
pub fn is_empty(&self) -> bool
pub fn get<Q>(&self, key: &Q) -> Option<TermDefinitionRef<'_, T, B, L, M>>where
Q: Hash + Eq + ?Sized,
Key: Borrow<Q>,
KeywordType: Borrow<Q>,
pub fn get_normal<Q>(&self, key: &Q) -> Option<&NormalTermDefinition<T, B, L, M>>where
Q: Hash + Eq + ?Sized,
Key: Borrow<Q>,
pub fn get_type(&self) -> Option<&TypeTermDefinition>
pub fn contains_key<Q>(&self, key: &Q) -> boolwhere
Q: Hash + Eq + ?Sized,
Key: Borrow<Q>,
KeywordType: Borrow<Q>,
pub fn insert(
&mut self,
binding: Binding<T, B, L, M>
) -> Option<TermDefinition<T, B, L, M>>
pub fn insert_normal(
&mut self,
key: Key,
definition: NormalTermDefinition<T, B, L, M>
) -> Option<NormalTermDefinition<T, B, L, M>>
pub fn insert_type(
&mut self,
definition: TypeTermDefinition
) -> Option<TypeTermDefinition>
pub fn set_normal(
&mut self,
key: Key,
definition: Option<NormalTermDefinition<T, B, L, M>>
) -> Option<NormalTermDefinition<T, B, L, M>>
pub fn set_type(
&mut self,
definition: Option<TypeTermDefinition>
) -> Option<TypeTermDefinition>
pub fn iter(&self) -> Iter<'_, T, B, L, M>ⓘNotable traits for Iter<'a, T, B, L, M>impl<'a, T, B, L, M> Iterator for Iter<'a, T, B, L, M> type Item = BindingRef<'a, T, B, L, M>;
Trait Implementations
sourceimpl<T, B, L, M> Clone for Definitions<T, B, L, M>where
T: Clone,
B: Clone,
L: Clone,
M: Clone,
impl<T, B, L, M> Clone for Definitions<T, B, L, M>where
T: Clone,
B: Clone,
L: Clone,
M: Clone,
sourcefn clone(&self) -> Definitions<T, B, L, M>
fn clone(&self) -> Definitions<T, B, L, M>
Returns a copy of the value. Read more
1.0.0 · sourceconst fn clone_from(&mut self, source: &Self)
const fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresourceimpl<T, B, L, M> Default for Definitions<T, B, L, M>
impl<T, B, L, M> Default for Definitions<T, B, L, M>
sourcefn default() -> Definitions<T, B, L, M>
fn default() -> Definitions<T, B, L, M>
Returns the “default value” for a type. Read more
sourceimpl<'a, T, B, L, M> IntoIterator for &'a Definitions<T, B, L, M>
impl<'a, T, B, L, M> IntoIterator for &'a Definitions<T, B, L, M>
type Item = BindingRef<'a, T, B, L, M>
type Item = BindingRef<'a, T, B, L, M>
The type of the elements being iterated over.
sourcefn into_iter(self) -> <&'a Definitions<T, B, L, M> as IntoIterator>::IntoIter
fn into_iter(self) -> <&'a Definitions<T, B, L, M> as IntoIterator>::IntoIter
Creates an iterator from a value. Read more
sourceimpl<T, B, L, M> IntoIterator for Definitions<T, B, L, M>
impl<T, B, L, M> IntoIterator for Definitions<T, B, L, M>
sourcefn into_iter(self) -> <Definitions<T, B, L, M> as IntoIterator>::IntoIter
fn into_iter(self) -> <Definitions<T, B, L, M> as IntoIterator>::IntoIter
Creates an iterator from a value. Read more
Auto Trait Implementations
impl<T, B, L, M> RefUnwindSafe for Definitions<T, B, L, M>where
B: RefUnwindSafe,
L: RefUnwindSafe,
M: RefUnwindSafe,
T: RefUnwindSafe,
impl<T, B, L, M> Send for Definitions<T, B, L, M>where
B: Send,
L: Send,
M: Send,
T: Send,
impl<T, B, L, M> Sync for Definitions<T, B, L, M>where
B: Sync,
L: Sync,
M: Sync,
T: Sync,
impl<T, B, L, M> Unpin for Definitions<T, B, L, M>where
B: Unpin,
L: Unpin,
M: Unpin,
T: Unpin,
impl<T, B, L, M> UnwindSafe for Definitions<T, B, L, M>where
B: UnwindSafe,
L: UnwindSafe,
M: 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