Trait Location

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

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

Location 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 considered that nothing is found.

Required Methods§

Source

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

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

Implementors§

Source§

impl<B, R> Location<R> for Columns<B>
where B: RangeBounds<usize>, R: Records,

Source§

impl<B, R> Location<R> for Rows<B>

Source§

impl<F, R> Location<R> for ByCondition<F>

Source§

impl<R> Location<R> for Column

Source§

impl<R> Location<R> for FirstColumn

Source§

impl<R> Location<R> for FirstRow

Source§

impl<R> Location<R> for LastColumn
where R: Records,

Source§

impl<R> Location<R> for LastRow
where R: ExactRecords,

Source§

impl<R> Location<R> for Row

Source§

impl<R, S> Location<R> for ByColumnName<S>

Source§

impl<R, S> Location<R> for ByContent<S>