[−][src]Struct gridly::grid::adapters::Transpose
Transpose a grid, swapping its rows and columns
Methods
impl<G> Transpose<G>
[src]
Trait Implementations
impl<G: GridBounds> GridBounds for Transpose<G>
[src]
impl<G: BaseGrid> BaseGrid for Transpose<G>
[src]
impl<G: PartialEq> PartialEq<Transpose<G>> for Transpose<G>
[src]
impl<G: PartialOrd> PartialOrd<Transpose<G>> for Transpose<G>
[src]
fn partial_cmp(&self, other: &Transpose<G>) -> Option<Ordering>
[src]
fn lt(&self, other: &Transpose<G>) -> bool
[src]
fn le(&self, other: &Transpose<G>) -> bool
[src]
fn gt(&self, other: &Transpose<G>) -> bool
[src]
fn ge(&self, other: &Transpose<G>) -> bool
[src]
impl<G: Ord> Ord for Transpose<G>
[src]
fn cmp(&self, other: &Transpose<G>) -> Ordering
[src]
default fn max(self, other: Self) -> Self
1.21.0[src]
Compares and returns the maximum of two values. Read more
default fn min(self, other: Self) -> Self
1.21.0[src]
Compares and returns the minimum of two values. Read more
default fn clamp(self, min: Self, max: Self) -> Self
[src]
clamp
)Restrict a value to a certain interval. Read more
impl<G: Eq> Eq for Transpose<G>
[src]
impl<G: Clone> Clone for Transpose<G>
[src]
fn clone(&self) -> Transpose<G>
[src]
default fn clone_from(&mut self, source: &Self)
1.0.0[src]
Performs copy-assignment from source
. Read more
impl<G: Default> Default for Transpose<G>
[src]
impl<G: Hash> Hash for Transpose<G>
[src]
fn hash<__HG: Hasher>(&self, state: &mut __HG)
[src]
default fn hash_slice<H>(data: &[Self], state: &mut H) where
H: Hasher,
1.3.0[src]
H: Hasher,
Feeds a slice of this type into the given [Hasher
]. Read more
impl<G: Debug> Debug for Transpose<G>
[src]
Auto Trait Implementations
Blanket Implementations
impl<G> GridBoundsExt for G where
G: GridBounds,
[src]
G: GridBounds,
fn num_rows(&self) -> Rows
[src]
fn num_columns(&self) -> Columns
[src]
fn dimension<C: VecComponent>(&self) -> C
[src]
Get the height or width of this grid.
fn root_row(&self) -> Row
[src]
Return the index of the topmost row of this grid. For most grids, this is 0, but some grids may include negatively indexed locations, or even offsets. This value MUST be const for any given grid. Read more
fn root_column(&self) -> Column
[src]
Return the index of the leftmost column of this grid. For most grids, this is 0, but some grids may include negatively indexed locations, or even offsets. This value MUST be const for any given grid. Read more
fn root_component<C: LocComponent>(&self) -> C
[src]
Return the index of the leftmost row or column of this grid.
ⓘImportant traits for Range<C>fn range<C: LocComponent>(&self) -> IndexRange<C>
[src]
Get a Range over the row or column indexes
fn row_range(&self) -> RowRange
[src]
A range iterator over all the column indexes in this grid
fn column_range(&self) -> ColumnRange
[src]
A range iterator over all the row indexes in this grid
fn check_component<C: LocComponent>(&self, c: C) -> Result<C, RangeError<C>>
[src]
Check that a Row or a Column is inside the bounds described by this Grid.
fn component_in_bounds<C: LocComponent>(&self, c: C) -> bool
[src]
fn check_location(
&self,
loc: impl Into<Location>
) -> Result<Location, LocationRangeError>
[src]
&self,
loc: impl Into<Location>
) -> Result<Location, LocationRangeError>
Check that a location is inside the bounds of this grid. Read more
fn location_in_bounds(&self, location: impl Into<Location>) -> bool
[src]
Returns true if a locaton is inside the bounds of this grid.
impl<G> Grid for G where
G: BaseGrid,
[src]
G: BaseGrid,
fn get(
&self,
location: impl Into<Location>
) -> Result<&Self::Item, LocationRangeError>
[src]
&self,
location: impl Into<Location>
) -> Result<&Self::Item, LocationRangeError>
Get a reference to a cell in a grid. Returns an error if the location is out of bounds with the specific boundary violation. Read more
fn view<T: LocComponent>(&self) -> View<Self, T>
[src]
fn rows(&self) -> RowsView<Self>
[src]
Get a view of a grid's rows
fn columns(&self) -> ColumnsView<Self>
[src]
Get a view of a grid's columns
unsafe fn single_view_unchecked<T: LocComponent>(
&self,
index: T
) -> SingleView<Self, T>
[src]
&self,
index: T
) -> SingleView<Self, T>
Get a view of a single row or column in a grid, without bounds checking that row or column index. Read more
unsafe fn row_unchecked(&self, row: impl Into<Row>) -> RowView<Self>
[src]
Get a view of a single row in a grid, without bounds checking that row's index
unsafe fn column_unchecked(&self, column: impl Into<Column>) -> ColumnView<Self>
[src]
Get a view of a single column in a grid, without bounds checking that column's index
fn single_view<T: LocComponent>(
&self,
index: T
) -> Result<SingleView<Self, T>, RangeError<T>>
[src]
&self,
index: T
) -> Result<SingleView<Self, T>, RangeError<T>>
Get a view of a single row or column in a grid. Returns an error if the index of the row or column is out of bounds for the grid. Read more
fn row(&self, row: impl Into<Row>) -> Result<RowView<Self>, RowRangeError>
[src]
Get a view of a single row in a grid. Returns an error if the index of the row is out of bounds for the grid. Read more
fn column(
&self,
column: impl Into<Column>
) -> Result<ColumnView<Self>, ColumnRangeError>
[src]
&self,
column: impl Into<Column>
) -> Result<ColumnView<Self>, ColumnRangeError>
Get a view of a single column in a grid. Returns an error if the index of the column is out of bounds for the grid. Read more
impl<T> From for T
[src]
impl<T, U> Into for T where
U: From<T>,
[src]
U: From<T>,
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
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> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?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>,