Struct json_ld_core::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>>, Option<TypeTermDefinition>)
pub fn len(&self) -> usize
pub fn is_empty(&self) -> bool
pub fn get<Q: ?Sized>(
&self,
key: &Q
) -> Option<TermDefinitionRef<'_, T, B, L, M>>where
Q: Hash + Eq,
Key: Borrow<Q>,
KeywordType: Borrow<Q>,
pub fn get_normal<Q: ?Sized>(
&self,
key: &Q
) -> Option<&NormalTermDefinition<T, B, L, M>>where
Q: Hash + Eq,
Key: Borrow<Q>,
pub fn get_type(&self) -> Option<&TypeTermDefinition>
pub fn contains_key<Q: ?Sized>(&self, key: &Q) -> boolwhere
Q: Hash + Eq,
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: Clone, B: Clone, L: Clone, M: Clone> Clone for Definitions<T, B, L, M>
impl<T: Clone, B: Clone, L: Clone, M: Clone> Clone for Definitions<T, B, L, M>
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>
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>
sourceimpl<T, B, L, M> IntoIterator for Definitions<T, B, L, M>
impl<T, B, L, M> IntoIterator for Definitions<T, B, L, M>
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