tabled::locator

Trait Locator

Source
pub trait Locator {
    type Coordinate;
    type IntoIter: IntoIterator<Item = Self::Coordinate>;

    // Required method
    fn locate<R>(&mut self, records: R) -> Self::IntoIter
       where R: Records;
}
Expand description

Locator is an interface which searches for a particular thing in the Records, and returns coordinate of the foundings if any.

Required Associated Types§

Source

type Coordinate

A coordinate of the finding.

Source

type IntoIter: IntoIterator<Item = Self::Coordinate>

An iterator of the coordinates. If it’s empty it’s consideret that nothing is found.

Required Methods§

Source

fn locate<R>(&mut self, records: R) -> Self::IntoIter
where R: Records,

Search for the thing in Records, returning a list of coordinates.

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.

Implementors§