Struct json_ld::context::JsonContext [−][src]
Implementations
Trait Implementations
type LocalContext = JsonValue
type LocalContext = JsonValue
The type of local contexts associated to this type of contexts.
Create a newly-initialized active context with the given base IRI.
Get the definition of a term.
Original base URL of the context.
Optional vocabulary mapping.
Optional default language.
Optional default base direction.
Get the previous context.
fn definitions<'a>(
&'a self
) -> Box<dyn Iterator<Item = (&'a String, &'a TermDefinition<T, Self>)> + 'a>
fn set(
&mut self,
term: &str,
definition: Option<TermDefinition<T, Self>>
) -> Option<TermDefinition<T, Self>>
fn set(
&mut self,
term: &str,
definition: Option<TermDefinition<T, Self>>
) -> Option<TermDefinition<T, Self>>
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.
Returns the “default value” for a type. Read more
This method tests for self
and other
values to be equal, and is used
by ==
. Read more
This method tests for !=
.
Auto Trait Implementations
impl<T> RefUnwindSafe for JsonContext<T> where
T: RefUnwindSafe,
impl<T> Send for JsonContext<T> where
T: Send,
impl<T> Sync for JsonContext<T> where
T: Sync,
impl<T> Unpin for JsonContext<T> where
T: Unpin,
impl<T> UnwindSafe for JsonContext<T> where
T: UnwindSafe,
Blanket Implementations
Mutably borrows from an owned value. Read more