[][src]Struct embedded_graphics::unsignedcoord::UnsignedCoord

pub struct UnsignedCoord(pub u32, pub u32);

2D unsigned coordinate in screen space

As opposed to Coord, this coordinate is unsigned. It is intended for use with Drawable iterators to output valid display pixel coordinates, i.e. coordinates that are always positive.

Methods

impl UnsignedCoord[src]

pub fn new(x: u32, y: u32) -> Self[src]

Create a new coordinate with X and Y values

Trait Implementations

impl ToSigned for UnsignedCoord[src]

impl Debug for UnsignedCoord[src]

impl PartialEq<UnsignedCoord> for UnsignedCoord[src]

impl Eq for UnsignedCoord[src]

impl Copy for UnsignedCoord[src]

impl Add<UnsignedCoord> for UnsignedCoord[src]

type Output = UnsignedCoord

The resulting type after applying the + operator.

impl Sub<UnsignedCoord> for UnsignedCoord[src]

type Output = UnsignedCoord

The resulting type after applying the - operator.

impl AddAssign<UnsignedCoord> for UnsignedCoord[src]

impl SubAssign<UnsignedCoord> for UnsignedCoord[src]

impl Index<usize> for UnsignedCoord[src]

type Output = u32

The returned type after indexing.

impl Clone for UnsignedCoord[src]

fn clone_from(&mut self, source: &Self)
1.0.0
[src]

Performs copy-assignment from source. Read more

Auto Trait Implementations

Blanket Implementations

impl<T> From for T[src]

impl<T, U> TryFrom for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

impl<T, U> Into for T where
    U: From<T>, 
[src]

impl<T> Borrow for T where
    T: ?Sized
[src]

impl<T> BorrowMut for T where
    T: ?Sized
[src]

impl<T> Any for T where
    T: 'static + ?Sized
[src]