pub struct Position<I: Indexed> {
pub row: Row<I>,
pub col: Column<I>,
}
Fields§
§row: Row<I>
§col: Column<I>
Implementations§
Source§impl Position<OneIndexed>
impl Position<OneIndexed>
pub fn zero_indexed(self) -> Position<ZeroIndexed>
Source§impl Position<ZeroIndexed>
impl Position<ZeroIndexed>
pub fn one_indexed(self) -> Position<OneIndexed>
Trait Implementations§
Source§impl<I: Ord + Indexed> Ord for Position<I>
impl<I: Ord + Indexed> Ord for Position<I>
1.21.0 · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
Source§impl<I: PartialOrd + Indexed> PartialOrd for Position<I>
impl<I: PartialOrd + Indexed> PartialOrd for Position<I>
impl<I: Indexed> Copy for Position<I>
impl<I: Eq + Indexed> Eq for Position<I>
impl<I: Indexed> StructuralPartialEq for Position<I>
Auto Trait Implementations§
impl<I> Freeze for Position<I>
impl<I> RefUnwindSafe for Position<I>where
I: RefUnwindSafe,
impl<I> Send for Position<I>where
I: Send,
impl<I> Sync for Position<I>where
I: Sync,
impl<I> Unpin for Position<I>where
I: Unpin,
impl<I> UnwindSafe for Position<I>where
I: UnwindSafe,
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more