[−][src]Struct json_ld::context::JsonContext
Methods
impl<T: Id> JsonContext<T>
[src]
pub fn new(base_iri: Option<Iri>) -> JsonContext<T>
[src]
Trait Implementations
impl<T: Clone + Id> Clone for JsonContext<T>
[src]
fn clone(&self) -> JsonContext<T>
[src]
fn clone_from(&mut self, source: &Self)
1.0.0[src]
impl<T: Id> Context<T> for JsonContext<T>
[src]
type LocalContext = JsonValue
The type of local contexts associated to this type of contexts.
fn new(base_iri: Option<Iri>) -> JsonContext<T>
[src]
fn get(&self, term: &str) -> Option<&TermDefinition<T, Self>>
[src]
fn original_base_url(&self) -> Option<Iri>
[src]
fn base_iri(&self) -> Option<Iri>
[src]
fn vocabulary(&self) -> Option<&Term<T>>
[src]
fn default_language(&self) -> Option<&str>
[src]
fn default_base_direction(&self) -> Option<Direction>
[src]
fn previous_context(&self) -> Option<&Self>
[src]
fn definitions<'a>(
&'a self
) -> Box<dyn Iterator<Item = (&'a String, &'a TermDefinition<T, Self>)> + 'a>
[src]
&'a self
) -> Box<dyn Iterator<Item = (&'a String, &'a TermDefinition<T, Self>)> + 'a>
fn get_opt(&self, term: Option<&str>) -> Option<&TermDefinition<T, Self>>
[src]
impl<T: Id> ContextMut<T> for JsonContext<T>
[src]
fn set(
&mut self,
term: &str,
definition: Option<TermDefinition<T, Self>>
) -> Option<TermDefinition<T, Self>>
[src]
&mut self,
term: &str,
definition: Option<TermDefinition<T, Self>>
) -> Option<TermDefinition<T, Self>>
fn set_base_iri(&mut self, iri: Option<Iri>)
[src]
fn set_vocabulary(&mut self, vocab: Option<Term<T>>)
[src]
fn set_default_language(&mut self, lang: Option<String>)
[src]
fn set_default_base_direction(&mut self, dir: Option<Direction>)
[src]
fn set_previous_context(&mut self, previous: Self)
[src]
impl<T: Eq + Id> Eq for JsonContext<T>
[src]
impl<T: PartialEq + Id> PartialEq<JsonContext<T>> for JsonContext<T>
[src]
fn eq(&self, other: &JsonContext<T>) -> bool
[src]
fn ne(&self, other: &JsonContext<T>) -> bool
[src]
impl<T: Id> StructuralEq for JsonContext<T>
[src]
impl<T: Id> StructuralPartialEq for JsonContext<T>
[src]
Auto Trait Implementations
impl<T> RefUnwindSafe for JsonContext<T> where
T: RefUnwindSafe,
T: RefUnwindSafe,
impl<T> Send for JsonContext<T> where
T: Send,
T: Send,
impl<T> Sync for JsonContext<T> where
T: Sync,
T: Sync,
impl<T> Unpin for JsonContext<T> where
T: Unpin,
T: Unpin,
impl<T> UnwindSafe for JsonContext<T> where
T: UnwindSafe,
T: UnwindSafe,
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
fn to_owned(&self) -> T
[src]
fn clone_into(&self, target: &mut T)
[src]
impl<T> ToOwned for T
[src]
type Owned = T
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,