Trait ReflectionPathExt

Source
pub trait ReflectionPathExt {
    // Required methods
    fn convert_to_0_indexed(&mut self);
    fn is_empty(&self) -> bool;
    fn iter(&self) -> impl Iterator<Item = &OffsetAccess>;
}
Expand description

An iterator over a reflect reference that will keep returning the next element forever.

Required Methods§

Source

fn convert_to_0_indexed(&mut self)

Assumes the accesses are 1 indexed and converts them to 0 indexed

Source

fn is_empty(&self) -> bool

Returns true if the path is empty

Source

fn iter(&self) -> impl Iterator<Item = &OffsetAccess>

Returns an iterator over the accesses

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.

Implementations on Foreign Types§

Source§

impl ReflectionPathExt for ParsedPath

Source§

fn convert_to_0_indexed(&mut self)

Assumes the accesses are 1 indexed and converts them to 0 indexed

Source§

fn is_empty(&self) -> bool

Source§

fn iter(&self) -> impl Iterator<Item = &OffsetAccess>

Implementors§