pub trait ContextMut<T: Id = IriBuf>: Context<T> {
    fn set(
        &mut self,
        term: &str,
        definition: Option<TermDefinition<T, Self>>
    ) -> Option<TermDefinition<T, Self>>;
fn set_base_iri(&mut self, iri: Option<Iri<'_>>);
fn set_vocabulary(&mut self, vocab: Option<Term<T>>);
fn set_default_language(&mut self, lang: Option<LenientLanguageTagBuf>);
fn set_default_base_direction(&mut self, dir: Option<Direction>);
fn set_previous_context(&mut self, previous: Self); }
Expand description

Mutable JSON-LD context.

Required methods

Defines the given term.

Sets the base IRI of the context.

Sets the vocabulary.

Sets the default language.

Sets de default language base direction.

Sets the previous context.

Implementors