pub struct RawJsonLdProcessedContext { /* private fields */ }Expand description
Processed JSON-LD context.
Represents the result of the context processing algorithm implemented
by the json-ld-context-processing crate.
Implementations§
Source§impl RawJsonLdProcessedContext
impl RawJsonLdProcessedContext
pub fn expand_iri( &self, value: JsonLdNullable<JsonLdExpandableRef<'_>>, document_relative: bool, vocab: bool, ) -> JsonLdTerm
pub fn expand_iri_with( &self, value: JsonLdNullable<JsonLdExpandableRef<'_>>, document_relative: bool, vocab: bool, on_warning: impl FnOnce(JsonLdWarning), ) -> JsonLdTerm
Source§impl RawJsonLdProcessedContext
impl RawJsonLdProcessedContext
Sourcepub fn get<Q>(&self, term: &Q) -> Option<JsonLdProcessedTermDefinitionRef<'_>>
pub fn get<Q>(&self, term: &Q) -> Option<JsonLdProcessedTermDefinitionRef<'_>>
Returns a reference to the given term definition, if any.
Sourcepub fn get_normal<Q>(
&self,
term: &Q,
) -> Option<&JsonLdProcessedNormalTermDefinition>
pub fn get_normal<Q>( &self, term: &Q, ) -> Option<&JsonLdProcessedNormalTermDefinition>
Returns a reference to the given term normal definition, if any.
Sourcepub fn get_type(&self) -> Option<&JsonLdProcessedTypeTermDefinition>
pub fn get_type(&self) -> Option<&JsonLdProcessedTypeTermDefinition>
Returns a reference to the @type definition, if any.
Sourcepub fn contains_term<Q>(&self, term: &Q) -> bool
pub fn contains_term<Q>(&self, term: &Q) -> bool
Checks if the given term is defined.
Sourcepub fn original_base_url(&self) -> Option<&Iri>
pub fn original_base_url(&self) -> Option<&Iri>
Returns the original base URL of the context.
Sourcepub fn vocabulary(&self) -> Option<&JsonLdTerm>
pub fn vocabulary(&self) -> Option<&JsonLdTerm>
Returns the @vocab value, if any.
Sourcepub fn default_language(&self) -> Option<JsonLdLenient<&LangTag>>
pub fn default_language(&self) -> Option<JsonLdLenient<&LangTag>>
Returns the default @language value.
Sourcepub fn default_base_direction(&self) -> Option<JsonLdDirection>
pub fn default_base_direction(&self) -> Option<JsonLdDirection>
Returns the default @direction value.
Sourcepub fn previous_context(&self) -> Option<&Self>
pub fn previous_context(&self) -> Option<&Self>
Returns a reference to the previous context.
Sourcepub fn definitions(&self) -> &JsonLdDefinitions
pub fn definitions(&self) -> &JsonLdDefinitions
Returns a handle to the term definitions.
Sourcepub fn has_protected_items(&self) -> bool
pub fn has_protected_items(&self) -> bool
Checks if the context has a protected definition.
Sourcepub fn inverse(&self) -> &InverseJsonLdContext
pub fn inverse(&self) -> &InverseJsonLdContext
Returns the inverse of this context.
Sourcepub fn set_normal(
&mut self,
key: JsonLdContextTerm,
definition: Option<JsonLdProcessedNormalTermDefinition>,
) -> Option<JsonLdProcessedNormalTermDefinition>
pub fn set_normal( &mut self, key: JsonLdContextTerm, definition: Option<JsonLdProcessedNormalTermDefinition>, ) -> Option<JsonLdProcessedNormalTermDefinition>
Sets the normal definition for the given term key.
Sourcepub fn set_type(
&mut self,
type_: Option<JsonLdProcessedTypeTermDefinition>,
) -> Option<JsonLdProcessedTypeTermDefinition>
pub fn set_type( &mut self, type_: Option<JsonLdProcessedTypeTermDefinition>, ) -> Option<JsonLdProcessedTypeTermDefinition>
Sets the @type definition.
Sourcepub fn set_base_iri(&mut self, iri: Option<IriBuf>)
pub fn set_base_iri(&mut self, iri: Option<IriBuf>)
Sets the base IRI.
Sourcepub fn set_vocabulary(&mut self, vocab: Option<JsonLdTerm>)
pub fn set_vocabulary(&mut self, vocab: Option<JsonLdTerm>)
Sets the @vocab value.
Sourcepub fn set_default_language(&mut self, lang: Option<JsonLdLenient<LangTagBuf>>)
pub fn set_default_language(&mut self, lang: Option<JsonLdLenient<LangTagBuf>>)
Sets the default @language value.
Sourcepub fn set_default_base_direction(&mut self, dir: Option<JsonLdDirection>)
pub fn set_default_base_direction(&mut self, dir: Option<JsonLdDirection>)
Sets the default @direction value.
Sourcepub fn set_previous_context(&mut self, previous: Self)
pub fn set_previous_context(&mut self, previous: Self)
Sets the previous context.
Trait Implementations§
Source§impl Clone for RawJsonLdProcessedContext
impl Clone for RawJsonLdProcessedContext
Source§impl Default for RawJsonLdProcessedContext
impl Default for RawJsonLdProcessedContext
Source§impl<'a> From<&'a RawJsonLdProcessedContext> for InverseJsonLdContext
impl<'a> From<&'a RawJsonLdProcessedContext> for InverseJsonLdContext
Source§fn from(context: &'a RawJsonLdProcessedContext) -> Self
fn from(context: &'a RawJsonLdProcessedContext) -> Self
Auto Trait Implementations§
impl !Freeze for RawJsonLdProcessedContext
impl RefUnwindSafe for RawJsonLdProcessedContext
impl Send for RawJsonLdProcessedContext
impl Sync for RawJsonLdProcessedContext
impl Unpin for RawJsonLdProcessedContext
impl UnsafeUnpin for RawJsonLdProcessedContext
impl UnwindSafe for RawJsonLdProcessedContext
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> ErasedDestructor for Twhere
T: 'static,
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
Source§fn in_current_span(self) -> Instrumented<Self> ⓘ
fn in_current_span(self) -> Instrumented<Self> ⓘ
Source§impl<T> JsonAt for T
impl<T> JsonAt for T
Source§fn json_at<F>(
self,
location: impl Into<Vec<JsonBacktraceFrame<F>>>,
) -> JsonLocated<T, F>
fn json_at<F>( self, location: impl Into<Vec<JsonBacktraceFrame<F>>>, ) -> JsonLocated<T, F>
self with location.Source§impl<D> OwoColorize for D
impl<D> OwoColorize for D
Source§fn fg<C>(&self) -> FgColorDisplay<'_, C, Self>where
C: Color,
fn fg<C>(&self) -> FgColorDisplay<'_, C, Self>where
C: Color,
Source§fn bg<C>(&self) -> BgColorDisplay<'_, C, Self>where
C: Color,
fn bg<C>(&self) -> BgColorDisplay<'_, C, Self>where
C: Color,
Source§fn black(&self) -> FgColorDisplay<'_, Black, Self>
fn black(&self) -> FgColorDisplay<'_, Black, Self>
Source§fn on_black(&self) -> BgColorDisplay<'_, Black, Self>
fn on_black(&self) -> BgColorDisplay<'_, Black, Self>
Source§fn red(&self) -> FgColorDisplay<'_, Red, Self>
fn red(&self) -> FgColorDisplay<'_, Red, Self>
Source§fn on_red(&self) -> BgColorDisplay<'_, Red, Self>
fn on_red(&self) -> BgColorDisplay<'_, Red, Self>
Source§fn green(&self) -> FgColorDisplay<'_, Green, Self>
fn green(&self) -> FgColorDisplay<'_, Green, Self>
Source§fn on_green(&self) -> BgColorDisplay<'_, Green, Self>
fn on_green(&self) -> BgColorDisplay<'_, Green, Self>
Source§fn yellow(&self) -> FgColorDisplay<'_, Yellow, Self>
fn yellow(&self) -> FgColorDisplay<'_, Yellow, Self>
Source§fn on_yellow(&self) -> BgColorDisplay<'_, Yellow, Self>
fn on_yellow(&self) -> BgColorDisplay<'_, Yellow, Self>
Source§fn blue(&self) -> FgColorDisplay<'_, Blue, Self>
fn blue(&self) -> FgColorDisplay<'_, Blue, Self>
Source§fn on_blue(&self) -> BgColorDisplay<'_, Blue, Self>
fn on_blue(&self) -> BgColorDisplay<'_, Blue, Self>
Source§fn magenta(&self) -> FgColorDisplay<'_, Magenta, Self>
fn magenta(&self) -> FgColorDisplay<'_, Magenta, Self>
Source§fn on_magenta(&self) -> BgColorDisplay<'_, Magenta, Self>
fn on_magenta(&self) -> BgColorDisplay<'_, Magenta, Self>
Source§fn purple(&self) -> FgColorDisplay<'_, Magenta, Self>
fn purple(&self) -> FgColorDisplay<'_, Magenta, Self>
Source§fn on_purple(&self) -> BgColorDisplay<'_, Magenta, Self>
fn on_purple(&self) -> BgColorDisplay<'_, Magenta, Self>
Source§fn cyan(&self) -> FgColorDisplay<'_, Cyan, Self>
fn cyan(&self) -> FgColorDisplay<'_, Cyan, Self>
Source§fn on_cyan(&self) -> BgColorDisplay<'_, Cyan, Self>
fn on_cyan(&self) -> BgColorDisplay<'_, Cyan, Self>
Source§fn white(&self) -> FgColorDisplay<'_, White, Self>
fn white(&self) -> FgColorDisplay<'_, White, Self>
Source§fn on_white(&self) -> BgColorDisplay<'_, White, Self>
fn on_white(&self) -> BgColorDisplay<'_, White, Self>
Source§fn default_color(&self) -> FgColorDisplay<'_, Default, Self>
fn default_color(&self) -> FgColorDisplay<'_, Default, Self>
Source§fn on_default_color(&self) -> BgColorDisplay<'_, Default, Self>
fn on_default_color(&self) -> BgColorDisplay<'_, Default, Self>
Source§fn bright_black(&self) -> FgColorDisplay<'_, BrightBlack, Self>
fn bright_black(&self) -> FgColorDisplay<'_, BrightBlack, Self>
Source§fn on_bright_black(&self) -> BgColorDisplay<'_, BrightBlack, Self>
fn on_bright_black(&self) -> BgColorDisplay<'_, BrightBlack, Self>
Source§fn bright_red(&self) -> FgColorDisplay<'_, BrightRed, Self>
fn bright_red(&self) -> FgColorDisplay<'_, BrightRed, Self>
Source§fn on_bright_red(&self) -> BgColorDisplay<'_, BrightRed, Self>
fn on_bright_red(&self) -> BgColorDisplay<'_, BrightRed, Self>
Source§fn bright_green(&self) -> FgColorDisplay<'_, BrightGreen, Self>
fn bright_green(&self) -> FgColorDisplay<'_, BrightGreen, Self>
Source§fn on_bright_green(&self) -> BgColorDisplay<'_, BrightGreen, Self>
fn on_bright_green(&self) -> BgColorDisplay<'_, BrightGreen, Self>
Source§fn bright_yellow(&self) -> FgColorDisplay<'_, BrightYellow, Self>
fn bright_yellow(&self) -> FgColorDisplay<'_, BrightYellow, Self>
Source§fn on_bright_yellow(&self) -> BgColorDisplay<'_, BrightYellow, Self>
fn on_bright_yellow(&self) -> BgColorDisplay<'_, BrightYellow, Self>
Source§fn bright_blue(&self) -> FgColorDisplay<'_, BrightBlue, Self>
fn bright_blue(&self) -> FgColorDisplay<'_, BrightBlue, Self>
Source§fn on_bright_blue(&self) -> BgColorDisplay<'_, BrightBlue, Self>
fn on_bright_blue(&self) -> BgColorDisplay<'_, BrightBlue, Self>
Source§fn bright_magenta(&self) -> FgColorDisplay<'_, BrightMagenta, Self>
fn bright_magenta(&self) -> FgColorDisplay<'_, BrightMagenta, Self>
Source§fn on_bright_magenta(&self) -> BgColorDisplay<'_, BrightMagenta, Self>
fn on_bright_magenta(&self) -> BgColorDisplay<'_, BrightMagenta, Self>
Source§fn bright_purple(&self) -> FgColorDisplay<'_, BrightMagenta, Self>
fn bright_purple(&self) -> FgColorDisplay<'_, BrightMagenta, Self>
Source§fn on_bright_purple(&self) -> BgColorDisplay<'_, BrightMagenta, Self>
fn on_bright_purple(&self) -> BgColorDisplay<'_, BrightMagenta, Self>
Source§fn bright_cyan(&self) -> FgColorDisplay<'_, BrightCyan, Self>
fn bright_cyan(&self) -> FgColorDisplay<'_, BrightCyan, Self>
Source§fn on_bright_cyan(&self) -> BgColorDisplay<'_, BrightCyan, Self>
fn on_bright_cyan(&self) -> BgColorDisplay<'_, BrightCyan, Self>
Source§fn bright_white(&self) -> FgColorDisplay<'_, BrightWhite, Self>
fn bright_white(&self) -> FgColorDisplay<'_, BrightWhite, Self>
Source§fn on_bright_white(&self) -> BgColorDisplay<'_, BrightWhite, Self>
fn on_bright_white(&self) -> BgColorDisplay<'_, BrightWhite, Self>
Source§fn bold(&self) -> BoldDisplay<'_, Self>
fn bold(&self) -> BoldDisplay<'_, Self>
Source§fn dimmed(&self) -> DimDisplay<'_, Self>
fn dimmed(&self) -> DimDisplay<'_, Self>
Source§fn italic(&self) -> ItalicDisplay<'_, Self>
fn italic(&self) -> ItalicDisplay<'_, Self>
Source§fn underline(&self) -> UnderlineDisplay<'_, Self>
fn underline(&self) -> UnderlineDisplay<'_, Self>
Source§fn blink(&self) -> BlinkDisplay<'_, Self>
fn blink(&self) -> BlinkDisplay<'_, Self>
Source§fn blink_fast(&self) -> BlinkFastDisplay<'_, Self>
fn blink_fast(&self) -> BlinkFastDisplay<'_, Self>
Source§fn reversed(&self) -> ReversedDisplay<'_, Self>
fn reversed(&self) -> ReversedDisplay<'_, Self>
Source§fn strikethrough(&self) -> StrikeThroughDisplay<'_, Self>
fn strikethrough(&self) -> StrikeThroughDisplay<'_, Self>
Source§fn color<Color>(&self, color: Color) -> FgDynColorDisplay<'_, Color, Self>where
Color: DynColor,
fn color<Color>(&self, color: Color) -> FgDynColorDisplay<'_, Color, Self>where
Color: DynColor,
OwoColorize::fg or
a color-specific method, such as OwoColorize::green, Read moreSource§fn on_color<Color>(&self, color: Color) -> BgDynColorDisplay<'_, Color, Self>where
Color: DynColor,
fn on_color<Color>(&self, color: Color) -> BgDynColorDisplay<'_, Color, Self>where
Color: DynColor,
OwoColorize::bg or
a color-specific method, such as OwoColorize::on_yellow, Read more