[][src]Struct pbrt::core::geometry::Point2i

pub struct Point2i {
    pub x: i32,
    pub y: i32,
}

Fields

x: i32y: i32

Trait Implementations

impl<'a, 'b> Add<&'a Point2i> for &'b Point2i[src]

type Output = Point2i

The resulting type after applying the + operator.

impl<'a> Add<&'a Point2i> for Point2i[src]

type Output = Point2i

The resulting type after applying the + operator.

impl<'a> Add<Point2i> for &'a Point2i[src]

type Output = Point2i

The resulting type after applying the + operator.

impl Add<Point2i> for Point2i[src]

type Output = Point2i

The resulting type after applying the + operator.

impl Clone for Point2i[src]

impl Copy for Point2i[src]

impl Debug for Point2i[src]

impl Default for Point2i[src]

impl From<Vector2i> for Point2i[src]

impl Index<XYEnum> for Point2i[src]

type Output = i32

The returned type after indexing.

impl IndexMut<XYEnum> for Point2i[src]

impl<'a, 'b> Sub<&'a Point2i> for &'b Point2i[src]

type Output = Vector2i

The resulting type after applying the - operator.

impl<'a> Sub<&'a Point2i> for Point2i[src]

type Output = Vector2i

The resulting type after applying the - operator.

impl<'a, 'b> Sub<&'a Vector2i> for &'b Point2i[src]

type Output = Point2i

The resulting type after applying the - operator.

impl<'a> Sub<&'a Vector2i> for Point2i[src]

type Output = Point2i

The resulting type after applying the - operator.

impl<'a> Sub<Point2i> for &'a Point2i[src]

type Output = Vector2i

The resulting type after applying the - operator.

impl Sub<Point2i> for Point2i[src]

type Output = Vector2i

The resulting type after applying the - operator.

impl<'a> Sub<Vector2i> for &'a Point2i[src]

type Output = Point2i

The resulting type after applying the - operator.

impl Sub<Vector2i> for Point2i[src]

type Output = Point2i

The resulting type after applying the - operator.

Auto Trait Implementations

impl RefUnwindSafe for Point2i

impl Send for Point2i

impl Sync for Point2i

impl Unpin for Point2i

impl UnwindSafe for Point2i

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.