pub struct Indexed<T> { /* private fields */ }
Expand description
Indexed objects.
Nodes and value objects may be indexed by a string in JSON-LD. This type is a wrapper around any kind of indexable data.
It is a pointer type that Deref
into the underlying value.
Implementations
Drop the index and return the underlying value.
Turn this indexed value into its components: inner value and index.
Converts this indexed object into an indexed node, if it is one.
Converts this indexed object into an indexed node, if it is one.
Converts this indexed object into an indexed list, if it is one.
Try to convert this object into an unnamed graph.
Trait Implementations
Converts this value into a K
JSON value using the given
meta
function to convert J::MetaData
into K::MetaData
. Read more
fn compact_full<'a, K: JsonFrom<J>, C: ContextMut<T>, L: Loader, M>(
&'a self,
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_full<'a, K: JsonFrom<J>, C: ContextMut<T>, L: Loader, M>(
&'a self,
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 a JSON-LD document into a K
JSON value with the provided
type scoped context, active property and options. Read more
fn compact_with<'a, K: JsonFrom<J>, C: ContextMut<T>, L: Loader, M>(
&'a self,
active_context: Inversible<T, &'a C>,
loader: &'a mut L,
options: Options,
meta: M
) -> BoxFuture<'a, Result<K, Error>> where
Self: Sync,
T: 'a + Sync + Send,
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_with<'a, K: JsonFrom<J>, C: ContextMut<T>, L: Loader, M>(
&'a self,
active_context: Inversible<T, &'a C>,
loader: &'a mut L,
options: Options,
meta: M
) -> BoxFuture<'a, Result<K, Error>> where
Self: Sync,
T: 'a + Sync + Send,
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 a JSON-LD document into a K
JSON value with the provided options. Read more
fn compact<'a, K: JsonFrom<J>, C: ContextMut<T>, L: Loader, M>(
&'a self,
active_context: Inversible<T, &'a C>,
loader: &'a mut L,
meta: M
) -> BoxFuture<'a, Result<K, Error>> where
Self: Sync,
T: 'a + Sync + Send,
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<'a, K: JsonFrom<J>, C: ContextMut<T>, L: Loader, M>(
&'a self,
active_context: Inversible<T, &'a C>,
loader: &'a mut L,
meta: M
) -> BoxFuture<'a, Result<K, Error>> where
Self: Sync,
T: 'a + Sync + Send,
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 a JSON-LD document into a K
JSON value with the default options.
Auto Trait Implementations
impl<T> RefUnwindSafe for Indexed<T> where
T: RefUnwindSafe,
impl<T> UnwindSafe for Indexed<T> where
T: UnwindSafe,
Blanket Implementations
Mutably borrows from an owned value. Read more