[−][src]Struct gridly::grid::SingleView
Methods
impl<'a, G: Grid + ?Sized, T: LocComponent> SingleView<'a, G, T>
[src]
pub fn index(&self) -> T
[src]
pub unsafe fn get_unchecked(&self, cross: T::Converse) -> &'a G::Item
[src]
pub fn get(
&self,
cross: impl Into<T::Converse>
) -> Result<&'a G::Item, RangeError<T::Converse>>
[src]
&self,
cross: impl Into<T::Converse>
) -> Result<&'a G::Item, RangeError<T::Converse>>
ⓘImportant traits for Range<C>pub fn range(&self) -> LocRange<T>
[src]
ⓘImportant traits for Range<C>
Get the locations associated with this view
pub fn iter(
&self
) -> impl Iterator<Item = &'a G::Item> + DoubleEndedIterator + FusedIterator + ExactSizeIterator + Debug + Clone
[src]
&self
) -> impl Iterator<Item = &'a G::Item> + DoubleEndedIterator + FusedIterator + ExactSizeIterator + Debug + Clone
pub fn with_locations(
&self
) -> impl Iterator<Item = (Location, &'a G::Item)> + DoubleEndedIterator + FusedIterator + ExactSizeIterator + Debug + Clone
[src]
&self
) -> impl Iterator<Item = (Location, &'a G::Item)> + DoubleEndedIterator + FusedIterator + ExactSizeIterator + Debug + Clone
pub fn with_component(
&self
) -> impl Iterator<Item = (T::Converse, &'a G::Item)> + DoubleEndedIterator + FusedIterator + ExactSizeIterator + Debug + Clone
[src]
&self
) -> impl Iterator<Item = (T::Converse, &'a G::Item)> + DoubleEndedIterator + FusedIterator + ExactSizeIterator + Debug + Clone
Trait Implementations
impl<'a, G: Grid + ?Sized, T: LocComponent> Index<<T as Component>::Converse> for SingleView<'a, G, T>
[src]
Auto Trait Implementations
impl<'a, G: ?Sized, T> Send for SingleView<'a, G, T> where
G: Sync,
T: Send,
G: Sync,
T: Send,
impl<'a, G: ?Sized, T> Sync for SingleView<'a, G, T> where
G: Sync,
T: Sync,
G: Sync,
T: Sync,
Blanket Implementations
impl<T> From for T
[src]
impl<T, U> Into for T where
U: From<T>,
[src]
U: From<T>,
impl<T, U> TryFrom for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T> Borrow for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T, U> TryInto for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error
The type returned in the event of a conversion error.
fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>
[src]
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,