[−][src]Struct klondike_lib::Coords
Fields
x: i32
y: i32
Methods
impl Coords
[src]
pub const fn from_xy(x: i32, y: i32) -> Coords
[src]
pub const fn from_x(x: i32) -> Coords
[src]
pub const fn from_y(y: i32) -> Coords
[src]
pub const fn to_x(&self) -> Coords
[src]
pub const fn to_y(&self) -> Coords
[src]
pub const fn as_row_col(&self) -> (u16, u16)
[src]
Trait Implementations
impl Eq for Coords
[src]
impl Clone for Coords
[src]
fn clone(&self) -> Coords
[src]
fn clone_from(&mut self, source: &Self)
1.0.0[src]
Performs copy-assignment from source
. Read more
impl Copy for Coords
[src]
impl PartialOrd<Coords> for Coords
[src]
fn partial_cmp(&self, other: &Coords) -> Option<Ordering>
[src]
fn lt(&self, other: &Coords) -> bool
[src]
fn le(&self, other: &Coords) -> bool
[src]
fn gt(&self, other: &Coords) -> bool
[src]
fn ge(&self, other: &Coords) -> bool
[src]
impl PartialEq<Coords> for Coords
[src]
impl Default for Coords
[src]
impl Add<Coords> for Coords
[src]
type Output = Coords
The resulting type after applying the +
operator.
fn add(self, other: Coords) -> Self::Output
[src]
impl Sub<Coords> for Coords
[src]
type Output = Coords
The resulting type after applying the -
operator.
fn sub(self, other: Coords) -> Self::Output
[src]
impl Mul<i32> for Coords
[src]
type Output = Coords
The resulting type after applying the *
operator.
fn mul(self, scalar: i32) -> Self::Output
[src]
impl Mul<Coords> for i32
[src]
type Output = Coords
The resulting type after applying the *
operator.
fn mul(self, coords: Coords) -> Self::Output
[src]
impl Div<i32> for Coords
[src]
type Output = Coords
The resulting type after applying the /
operator.
fn div(self, scalar: i32) -> Self::Output
[src]
impl AddAssign<Coords> for Coords
[src]
fn add_assign(&mut self, other: Coords)
[src]
impl SubAssign<Coords> for Coords
[src]
fn sub_assign(&mut self, other: Coords)
[src]
impl MulAssign<i32> for Coords
[src]
fn mul_assign(&mut self, scalar: i32)
[src]
impl DivAssign<i32> for Coords
[src]
fn div_assign(&mut self, scalar: i32)
[src]
impl Debug for Coords
[src]
Auto Trait Implementations
Blanket Implementations
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> From for T
[src]
impl<T, U> TryFrom for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = !
🔬 This is a nightly-only experimental API. (
try_from
)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, U> TryInto for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error
🔬 This is a nightly-only experimental API. (
try_from
)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,
impl<T> BorrowMut for T where
T: ?Sized,
[src]
T: ?Sized,