#[repr(C)]pub struct Pair<Row, Col> {
pub row: Row,
pub col: Col,
}Expand description
pair of indices with C-compatible layout
Fields§
§row: Rowrow index
col: Colcolumn index
Implementations§
Trait Implementations§
impl<Row: Copy, Col: Copy> Copy for Pair<Row, Col>
impl<Row: Eq, Col: Eq> Eq for Pair<Row, Col>
impl<Row, Col> StructuralPartialEq for Pair<Row, Col>
Auto Trait Implementations§
impl<Row, Col> Freeze for Pair<Row, Col>
impl<Row, Col> RefUnwindSafe for Pair<Row, Col>where
Row: RefUnwindSafe,
Col: RefUnwindSafe,
impl<Row, Col> Send for Pair<Row, Col>
impl<Row, Col> Sync for Pair<Row, Col>
impl<Row, Col> Unpin for Pair<Row, Col>
impl<Row, Col> UnwindSafe for Pair<Row, Col>where
Row: UnwindSafe,
Col: 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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> DistributionExt for Twhere
T: ?Sized,
impl<T> DistributionExt for Twhere
T: ?Sized,
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more