[][src]Struct meli::terminal::cells::RowIterator

pub struct RowIterator {
    row: usize,
    col: Range<usize>,
}

Use RowIterator to iterate the cells of a row without the need to do any bounds checking; the iterator will simply return None when it reaches the end of the row. RowIterator can be created via the CellBuffer::row_iter method and can be returned by BoundsIterator which iterates each row.

for c in grid.row_iter(
    x..(x + 11),
    0,
) {
    grid[c].set_ch('w');
}

Fields

row: usizecol: Range<usize>

Implementations

impl RowIterator[src]

pub fn forward_col(self, new_val: usize) -> Self[src]

Trait Implementations

impl Iterator for RowIterator[src]

type Item = (usize, usize)

The type of the elements being iterated over.

Auto Trait Implementations

impl RefUnwindSafe for RowIterator

impl Send for RowIterator

impl Sync for RowIterator

impl Unpin for RowIterator

impl UnwindSafe for RowIterator

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T> Instrument for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<I> IntoIterator for I where
    I: Iterator
[src]

type Item = <I as Iterator>::Item

The type of the elements being iterated over.

type IntoIter = I

Which kind of iterator are we turning this into?

impl<I> IteratorRandom for I where
    I: Iterator
[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

impl<V, T> VZip<V> for T where
    V: MultiLane<T>, 

impl<T> WithSubscriber for T[src]