[−][src]Struct gridly_adapters::Transpose
Grid adapter that transposes the row & column of the wrapped grid. This is a diagonal reflection through (0, 0).
Implementations
impl<G: GridBounds> Transpose<G>
[src]
Trait Implementations
impl<G: Clone> Clone for Transpose<G>
[src]
impl<G: Debug> Debug for Transpose<G>
[src]
impl<G: Grid> Grid for Transpose<G>
[src]
type Item = G::Item
The item type stored in the grid
unsafe fn get_unchecked(&self, location: Location) -> &Self::Item
[src]
fn get(&self, location: impl LocationLike) -> Result<&Self::Item, BoundsError>
[src]
fn view<T>(&self) -> View<'_, Self, T> where
T: Component,
[src]
T: Component,
fn rows(&self) -> View<'_, Self, Row>
[src]
fn columns(&self) -> View<'_, Self, Column>
[src]
unsafe fn single_view_unchecked<T>(&self, index: T) -> SingleView<'_, Self, T> where
T: Component,
[src]
T: Component,
unsafe fn row_unchecked(&self, row: Row) -> SingleView<'_, Self, Row>
[src]
unsafe fn column_unchecked(
&self,
column: Column
) -> SingleView<'_, Self, Column>
[src]
&self,
column: Column
) -> SingleView<'_, Self, Column>
fn single_view<T>(
&self,
index: T
) -> Result<SingleView<'_, Self, T>, RangeError<T>> where
T: Component,
[src]
&self,
index: T
) -> Result<SingleView<'_, Self, T>, RangeError<T>> where
T: Component,
fn row(
&self,
row: impl Into<Row>
) -> Result<SingleView<'_, Self, Row>, RangeError<Row>>
[src]
&self,
row: impl Into<Row>
) -> Result<SingleView<'_, Self, Row>, RangeError<Row>>
fn column(
&self,
column: impl Into<Column>
) -> Result<SingleView<'_, Self, Column>, RangeError<Column>>
[src]
&self,
column: impl Into<Column>
) -> Result<SingleView<'_, Self, Column>, RangeError<Column>>
fn display_with<T, F>(&self, func: F) -> DisplayAdapter<&Self, F> where
F: Fn(&Self::Item) -> T,
T: Display,
[src]
F: Fn(&Self::Item) -> T,
T: Display,
impl<G: GridBounds> GridBounds for Transpose<G>
[src]
fn dimensions(&self) -> Vector
[src]
fn root(&self) -> Location
[src]
#[must_use]fn outer_bound(&self) -> Location
[src]
#[must_use]fn num_rows(&self) -> Rows
[src]
#[must_use]fn num_columns(&self) -> Columns
[src]
#[must_use]fn dimension<C>(&self) -> C where
C: Component,
[src]
C: Component,
#[must_use]fn root_row(&self) -> Row
[src]
#[must_use]fn root_column(&self) -> Column
[src]
#[must_use]fn root_component<C>(&self) -> C where
C: Component,
[src]
C: Component,
#[must_use]fn row_range(&self) -> ComponentRange<Row>
[src]
#[must_use]fn column_range(&self) -> ComponentRange<Column>
[src]
#[must_use]fn range<C>(&self) -> ComponentRange<C> where
C: Component,
[src]
C: Component,
fn check_component<C>(&self, c: C) -> Result<C, RangeError<C>> where
C: Component,
[src]
C: Component,
fn check_row(&self, row: impl Into<Row>) -> Result<Row, RangeError<Row>>
[src]
fn check_column(
&self,
column: impl Into<Column>
) -> Result<Column, RangeError<Column>>
[src]
&self,
column: impl Into<Column>
) -> Result<Column, RangeError<Column>>
#[must_use]fn component_in_bounds<C>(&self, c: C) -> bool where
C: Component,
[src]
C: Component,
#[must_use]fn row_in_bounds(&self, row: impl Into<Row>) -> bool
[src]
#[must_use]fn column_in_bounds(&self, column: impl Into<Column>) -> bool
[src]
fn check_location(
&self,
location: impl LocationLike
) -> Result<Location, BoundsError>
[src]
&self,
location: impl LocationLike
) -> Result<Location, BoundsError>
#[must_use]fn location_in_bounds(&self, location: impl LocationLike) -> bool
[src]
impl<G: GridMut> GridMut for Transpose<G>
[src]
unsafe fn get_unchecked_mut(&mut self, location: Location) -> &mut Self::Item
[src]
fn get_mut(
&mut self,
location: impl LocationLike
) -> Result<&mut Self::Item, BoundsError>
[src]
&mut self,
location: impl LocationLike
) -> Result<&mut Self::Item, BoundsError>
impl<G: GridSetter> GridSetter for Transpose<G>
[src]
unsafe fn replace_unchecked(
&mut self,
location: Location,
value: Self::Item
) -> Self::Item
[src]
&mut self,
location: Location,
value: Self::Item
) -> Self::Item
unsafe fn set_unchecked(&mut self, location: Location, value: Self::Item)
[src]
fn replace(
&mut self,
location: impl LocationLike,
value: Self::Item
) -> Result<Self::Item, BoundsError>
[src]
&mut self,
location: impl LocationLike,
value: Self::Item
) -> Result<Self::Item, BoundsError>
fn set(
&mut self,
location: impl LocationLike,
value: Self::Item
) -> Result<(), BoundsError>
[src]
&mut self,
location: impl LocationLike,
value: Self::Item
) -> Result<(), BoundsError>
Auto Trait Implementations
impl<G> RefUnwindSafe for Transpose<G> where
G: RefUnwindSafe,
G: RefUnwindSafe,
impl<G> Send for Transpose<G> where
G: Send,
G: Send,
impl<G> Sync for Transpose<G> where
G: Sync,
G: Sync,
impl<G> Unpin for Transpose<G> where
G: Unpin,
G: Unpin,
impl<G> UnwindSafe for Transpose<G> where
G: UnwindSafe,
G: UnwindSafe,
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
pub fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
pub fn to_owned(&self) -> T
[src]
pub fn clone_into(&self, target: &mut T)
[src]
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
pub fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,