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§
Sourcetype Coordinate
type Coordinate
A coordinate of the finding.
Sourcetype IntoIter: IntoIterator<Item = Self::Coordinate>
type IntoIter: IntoIterator<Item = Self::Coordinate>
An iterator of the coordinates. If it’s empty it’s consideret that nothing is found.
Required Methods§
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.