pub struct IdxPath(_);
Expand description

A shortest-path set of indices on a JSON object

Implementations

The length of this path

Whether this path is empty

Reference this path as a raw slice of indices

Remove the last n items from this path

Panics
  • If n is greater than the length of this path

Resolve this path on a value, returning a reference to the result or an error indicating why the path couldn’t be resolved

Errors
  • If the path cannot be resolved

Resolve this path on a value, returning a mutable reference to the result or an error indicating why the path couldn’t be resolved

Errors
  • If the path cannot be resolved

Trait Implementations

Performs the conversion.

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

The number of items that this chain link consists of.

Append the elements in this link to the chain.

Performs the conversion.

Performs the conversion.

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.