[][src]Struct tuifw_screen_base::Vector

pub struct Vector {
    pub x: i16,
    pub y: i16,
}

Fields

x: i16y: i16

Implementations

impl Vector[src]

pub fn null() -> Vector[src]

pub fn is_null(self) -> bool[src]

pub fn rect_area(self) -> u32[src]

pub fn max(self, other: Vector) -> Vector[src]

pub fn min(self, other: Vector) -> Vector[src]

Trait Implementations

impl Add<Vector> for Vector[src]

type Output = Self

The resulting type after applying the + operator.

impl AddAssign<Vector> for Vector[src]

impl Clone for Vector[src]

impl Copy for Vector[src]

impl Debug for Vector[src]

impl Default for Vector[src]

impl Eq for Vector[src]

impl Hash for Vector[src]

impl Neg for Vector[src]

type Output = Self

The resulting type after applying the - operator.

impl PartialEq<Vector> for Vector[src]

impl StructuralEq for Vector[src]

impl StructuralPartialEq for Vector[src]

impl Sub<Vector> for Vector[src]

type Output = Self

The resulting type after applying the - operator.

impl SubAssign<Vector> for Vector[src]

impl Zero for Vector[src]

Auto Trait Implementations

impl Send for Vector

impl Sync for Vector

impl Unpin for Vector

Blanket Implementations

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

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

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

impl<T> From<T> for T[src]

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

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

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

type Error = Infallible

The type returned in the event of a conversion error.

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

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

The type returned in the event of a conversion error.