[−][src]Struct block_breaker::Position
A generic position
Methods
impl Position
[src]
pub fn new(x: u16, y: u16) -> Position
[src]
Create a new position
pub fn x(&self) -> u16
[src]
Get the x coordinate
pub fn y(&self) -> u16
[src]
Get the y coordinate
Trait Implementations
impl Add<Position> for Position
[src]
type Output = Self
The resulting type after applying the +
operator.
fn add(self, other: Self) -> Self
[src]
impl<'a, 'b> Add<&'b Position> for &'a Position
[src]
type Output = Position
The resulting type after applying the +
operator.
fn add(self, other: &'b Position) -> Position
[src]
impl<'a, 'b> Add<&'b Vector> for &'a Position
[src]
type Output = Position
The resulting type after applying the +
operator.
fn add(self, other: &'b Vector) -> Position
[src]
impl<'a, 'b> Add<&'b Position> for &'a Vector
[src]
type Output = Position
The resulting type after applying the +
operator.
fn add(self, other: &'b Position) -> Position
[src]
impl Sub<Position> for Position
[src]
type Output = Self
The resulting type after applying the -
operator.
fn sub(self, other: Self) -> Self
[src]
impl AddAssign<Position> for Position
[src]
fn add_assign(&mut self, other: Self)
[src]
impl<'a> AddAssign<&'a Position> for Position
[src]
fn add_assign(&mut self, other: &Self)
[src]
impl SubAssign<Position> for Position
[src]
fn sub_assign(&mut self, other: Self)
[src]
Auto Trait Implementations
impl Send for Position
impl Unpin for Position
impl Sync for Position
impl UnwindSafe for Position
impl RefUnwindSafe for Position
Blanket Implementations
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
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.
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>,
type Error = <U as TryFrom<T>>::Error
The type returned in the event of a conversion error.
fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>
[src]
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,