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

Create a new (maybe) indexed value.

Get a reference to the inner value.

Drop the index and return the underlying value.

Get the index, if any.

Set the value index.

Turn this indexed value into its components: inner value and index.

Cast the inner value.

Try to cast the inner value.

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

Converts this value into a K JSON value. Read more

Performs the conversion.

Performs the conversion.

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

Compact a JSON-LD document into a K JSON value with the provided type scoped context, active property and options. Read more

Compact a JSON-LD document into a K JSON value with the provided options. Read more

Compact a JSON-LD document into a K JSON value with the default options.

The resulting type after dereferencing.

Dereferences the value.

Mutably dereferences the value.

Performs the conversion.

Feeds this value into the given Hasher. Read more

Feeds a slice of this type into the given Hasher. Read more

This method tests for self and other values to be equal, and is used by ==. Read more

This method tests for !=.

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Performs the conversion.

Performs the conversion.

Performs the conversion.

The resulting type after obtaining ownership.

Creates owned data from borrowed data, usually by cloning. Read more

🔬 This is a nightly-only experimental API. (toowned_clone_into)

Uses borrowed data to replace owned data, usually by cloning. Read more

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.