term_model::grid

Trait IndexRegion

Source
pub trait IndexRegion<I, T> {
    // Required methods
    fn region(&self, _: I) -> Region<'_, T>;
    fn region_mut(&mut self, _: I) -> RegionMut<'_, T>;
}

Required Methods§

Source

fn region(&self, _: I) -> Region<'_, T>

Get an immutable region of Self

Source

fn region_mut(&mut self, _: I) -> RegionMut<'_, T>

Get a mutable region of Self

Implementors§

Source§

impl<T> IndexRegion<Range<Line>, T> for Grid<T>

Source§

impl<T> IndexRegion<RangeFrom<Line>, T> for Grid<T>

Source§

impl<T> IndexRegion<RangeFull, T> for Grid<T>

Source§

impl<T> IndexRegion<RangeTo<Line>, T> for Grid<T>