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

pub struct Bounds2i {
    pub p_min: Point2i,
    pub p_max: Point2i,


p_min: Point2ip_max: Point2i


impl Bounds2i[src]

pub fn new(p1: Point2i, p2: Point2i) -> Self[src]

pub fn diagonal(&self) -> Vector2i[src]

pub fn area(&self) -> i32[src]

Trait Implementations

impl Clone for Bounds2i[src]

impl Copy for Bounds2i[src]

impl Debug for Bounds2i[src]

impl Default for Bounds2i[src]

impl<'a> IntoIterator for &'a Bounds2i[src]

type Item = Point2i

The type of the elements being iterated over.

type IntoIter = Bounds2Iterator<'a>

Which kind of iterator are we turning this into?

Auto Trait Implementations

impl RefUnwindSafe for Bounds2i

impl Send for Bounds2i

impl Sync for Bounds2i

impl Unpin for Bounds2i

impl UnwindSafe for Bounds2i

Blanket Implementations

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

impl<T> Borrow<T> for T where
    T: ?Sized

impl<T> BorrowMut<T> for T where
    T: ?Sized

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

impl<T, U> Into<U> for T where
    U: From<T>, 

impl<T> ToOwned for T where
    T: Clone

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 

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

The type returned in the event of a conversion error.