[][src]Struct gridly::range::LocationRange

pub struct LocationRange<C: Component> { /* fields omitted */ }

A range over Locations in a given Row or Column. The generic parameter is the direction of the range; that is to say, a LocationRange<Row> is a range of locations in a given row. Each location in the range has the same row but a different column.

Methods

impl<C: Component> LocationRange<C>[src]

pub fn new(index: C, range: ComponentRange<C::Converse>) -> Self[src]

pub fn bounded(index: C, start: C::Converse, end: C::Converse) -> Self[src]

pub fn span(
    index: C,
    start: C::Converse,
    size: <C::Converse as Component>::Distance
) -> Self
[src]

pub fn rooted(
    root: Location,
    size: <C::Converse as Component>::Distance
) -> Self
[src]

Important traits for ComponentRange<C>
pub fn component_range(&self) -> ComponentRange<C::Converse>[src]

pub fn index(&self) -> C[src]

pub fn start(&self) -> Location[src]

pub fn end(&self) -> Location[src]

pub fn size(&self) -> <C::Converse as Component>::Distance[src]

Trait Implementations

impl<C: Eq + Component> Eq for LocationRange<C> where
    C::Converse: Eq
[src]

impl<C: Component> ExactSizeIterator for LocationRange<C>[src]

impl<C: Clone + Component> Clone for LocationRange<C> where
    C::Converse: Clone
[src]

impl<C: Component> DoubleEndedIterator for LocationRange<C>[src]

impl<C: PartialEq + Component> PartialEq<LocationRange<C>> for LocationRange<C> where
    C::Converse: PartialEq
[src]

impl<C: Component> Iterator for LocationRange<C>[src]

type Item = Location

The type of the elements being iterated over.

impl<C: Hash + Component> Hash for LocationRange<C> where
    C::Converse: Hash
[src]

impl<C: Debug + Component> Debug for LocationRange<C> where
    C::Converse: Debug
[src]

impl<C: Component> FusedIterator for LocationRange<C>[src]

Auto Trait Implementations

impl<C> Send for LocationRange<C> where
    C: Send,
    <C as Component>::Converse: Send

impl<C> Unpin for LocationRange<C> where
    C: Unpin,
    <C as Component>::Converse: Unpin

impl<C> Sync for LocationRange<C> where
    C: Sync,
    <C as Component>::Converse: Sync

impl<C> UnwindSafe for LocationRange<C> where
    C: UnwindSafe,
    <C as Component>::Converse: UnwindSafe

impl<C> RefUnwindSafe for LocationRange<C> where
    C: RefUnwindSafe,
    <C as Component>::Converse: RefUnwindSafe

Blanket Implementations

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

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<T> From<T> for T[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<T> BorrowMut<T> for T where
    T: ?Sized
[src]

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

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