Trait json_ld::compaction::CompactIndexed
source[−]pub trait CompactIndexed<J: JsonSrc, T: Id> {
fn compact_indexed<'a, K: JsonFrom<J>, C: ContextMut<T>, L: Loader, M>(
&'a self,
index: Option<&'a str>,
active_context: Inversible<T, &'a C>,
type_scoped_context: Inversible<T, &'a C>,
active_property: Option<&'a str>,
loader: &'a mut L,
options: Options,
meta: M
) -> BoxFuture<'a, Result<K, Error>>
where
J: 'a,
T: 'a,
C: Sync + Send,
C::LocalContext: Send + Sync + From<L::Output>,
L: Sync + Send,
M: 'a + Send + Sync + Clone + Fn(Option<&J::MetaData>) -> K::MetaData;
}
Expand description
Type that can be compacted with an index.
Required methods
fn compact_indexed<'a, K: JsonFrom<J>, C: ContextMut<T>, L: Loader, M>(
&'a self,
index: Option<&'a str>,
active_context: Inversible<T, &'a C>,
type_scoped_context: Inversible<T, &'a C>,
active_property: Option<&'a str>,
loader: &'a mut L,
options: Options,
meta: M
) -> BoxFuture<'a, Result<K, Error>> where
J: 'a,
T: 'a,
C: Sync + Send,
C::LocalContext: Send + Sync + From<L::Output>,
L: Sync + Send,
M: 'a + Send + Sync + Clone + Fn(Option<&J::MetaData>) -> K::MetaData,
fn compact_indexed<'a, K: JsonFrom<J>, C: ContextMut<T>, L: Loader, M>(
&'a self,
index: Option<&'a str>,
active_context: Inversible<T, &'a C>,
type_scoped_context: Inversible<T, &'a C>,
active_property: Option<&'a str>,
loader: &'a mut L,
options: Options,
meta: M
) -> BoxFuture<'a, Result<K, Error>> where
J: 'a,
T: 'a,
C: Sync + Send,
C::LocalContext: Send + Sync + From<L::Output>,
L: Sync + Send,
M: 'a + Send + Sync + Clone + Fn(Option<&J::MetaData>) -> K::MetaData,
Compact with the given optional index.