Struct json_ld_context_processing::Processed
source · [−]pub struct Processed<'l, T, B, C, M> { /* private fields */ }
Expand description
Processed context that also borrows the original, unprocessed, context.
Implementations
sourceimpl<'l, T, B, C, M> Processed<'l, T, B, C, M>
impl<'l, T, B, C, M> Processed<'l, T, B, C, M>
pub fn unprocessed(&self) -> Meta<&'l C, &'l M>
pub fn into_processed(self) -> Context<T, B, C, M>
pub fn as_ref(&self) -> ProcessedRef<'l, '_, T, B, C, M>
pub fn into_owned(self) -> ProcessedOwned<T, B, C, M>where
C: Clone,
M: Clone,
Methods from Deref<Target = Context<T, B, C, M>>
pub fn get<Q>(&self, term: &Q) -> Option<TermDefinitionRef<'_, T, B, L, M>>where
Key: Borrow<Q>,
KeywordType: Borrow<Q>,
Q: Hash + Eq + ?Sized,
pub fn get_normal<Q>(
&self,
term: &Q
) -> Option<&NormalTermDefinition<T, B, L, M>>where
Key: Borrow<Q>,
Q: Hash + Eq + ?Sized,
pub fn get_type(&self) -> Option<&TypeTermDefinition>
pub fn contains_key<Q>(&self, term: &Q) -> boolwhere
Key: Borrow<Q>,
KeywordType: Borrow<Q>,
Q: Hash + Eq + ?Sized,
pub fn original_base_url(&self) -> Option<&T>
pub fn base_iri(&self) -> Option<&T>
pub fn vocabulary(&self) -> Option<&Term<T, B>>
pub fn default_language(&self) -> Option<LenientLanguageTag<'_>>
pub fn default_base_direction(&self) -> Option<Direction>
pub fn previous_context(&self) -> Option<&Context<T, B, L, M>>
pub fn len(&self) -> usize
pub fn is_empty(&self) -> bool
pub fn definitions(&self) -> &Definitions<T, B, L, M>
sourcepub fn has_protected_items(&self) -> bool
pub fn has_protected_items(&self) -> bool
Checks if the context has a protected definition.
pub fn inverse(&self) -> &InverseContext<T, B>where
T: Clone + Hash + Eq,
B: Clone + Hash + Eq,
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,
type_: Option<TypeTermDefinition>
) -> Option<TypeTermDefinition>
pub fn set_base_iri(&mut self, iri: Option<T>)
pub fn set_vocabulary(&mut self, vocab: Option<Term<T, B>>)
pub fn set_default_language(&mut self, lang: Option<LenientLanguageTagBuf>)
pub fn set_default_base_direction(&mut self, dir: Option<Direction>)
pub fn set_previous_context(&mut self, previous: Context<T, B, L, M>)
Trait Implementations
Auto Trait Implementations
impl<'l, T, B, C, M> RefUnwindSafe for Processed<'l, T, B, C, M>where
B: UnwindSafe + RefUnwindSafe,
C: RefUnwindSafe,
M: RefUnwindSafe,
T: UnwindSafe + RefUnwindSafe,
impl<'l, T, B, C, M> Send for Processed<'l, T, B, C, M>where
B: Send,
C: Send + Sync,
M: Send + Sync,
T: Send,
impl<'l, T, B, C, M> Sync for Processed<'l, T, B, C, M>where
B: Send + Sync,
C: Sync,
M: Sync,
T: Send + Sync,
impl<'l, T, B, C, M> Unpin for Processed<'l, T, B, C, M>where
B: Unpin,
C: Unpin,
M: Unpin,
T: Unpin,
impl<'l, T, B, C, M> UnwindSafe for Processed<'l, T, B, C, M>where
B: UnwindSafe,
C: UnwindSafe + RefUnwindSafe,
M: UnwindSafe + RefUnwindSafe,
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