Trait json_ld_syntax::context::definition::AnyDefinition
source · pub trait AnyDefinition<M>: Sized {
type ContextValue: AnyValue<M>;
Show 13 methods
// Required methods
fn base(&self) -> Option<BaseEntryRef<'_, M>>;
fn import(&self) -> Option<ImportEntryRef<'_, M>>;
fn language(&self) -> Option<LanguageEntryRef<'_, M>>;
fn direction(&self) -> Option<DirectionEntry<M>>;
fn propagate(&self) -> Option<PropagateEntry<M>>;
fn protected(&self) -> Option<ProtectedEntry<M>>;
fn type_(&self) -> Option<TypeEntry<M>>;
fn version(&self) -> Option<VersionEntry<M>>;
fn vocab(&self) -> Option<VocabEntryRef<'_, M>>;
fn bindings(&self) -> BindingsIter<'_, M, Self::ContextValue> ⓘ;
fn get_binding(
&self,
key: &Key
) -> Option<TermBindingRef<'_, M, Self::ContextValue>>;
// Provided methods
fn get(
&self,
key: &KeyOrKeyword
) -> Option<EntryValueRef<'_, M, Self::ContextValue>> { ... }
fn entries(&self) -> Entries<'_, M, Self::ContextValue> ⓘ { ... }
}
Required Associated Types§
type ContextValue: AnyValue<M>
Required Methods§
fn base(&self) -> Option<BaseEntryRef<'_, M>>
fn import(&self) -> Option<ImportEntryRef<'_, M>>
fn language(&self) -> Option<LanguageEntryRef<'_, M>>
fn direction(&self) -> Option<DirectionEntry<M>>
fn propagate(&self) -> Option<PropagateEntry<M>>
fn protected(&self) -> Option<ProtectedEntry<M>>
fn type_(&self) -> Option<TypeEntry<M>>
fn version(&self) -> Option<VersionEntry<M>>
fn vocab(&self) -> Option<VocabEntryRef<'_, M>>
fn bindings(&self) -> BindingsIter<'_, M, Self::ContextValue> ⓘ
fn get_binding( &self, key: &Key ) -> Option<TermBindingRef<'_, M, Self::ContextValue>>
Provided Methods§
fn get( &self, key: &KeyOrKeyword ) -> Option<EntryValueRef<'_, M, Self::ContextValue>>
fn entries(&self) -> Entries<'_, M, Self::ContextValue> ⓘ
Object Safety§
This trait is not object safe.