[][src]Struct gut::bbox::Corner

pub struct Corner {
    pub x: EndPoint,
    pub y: EndPoint,
    pub z: EndPoint,
}

Structure for accessing corner positions of a bounding box.

Fields

x: EndPointy: EndPointz: EndPoint

Trait Implementations

impl From<u8> for Corner[src]

Corner can be encoded by 3 bits, identifying the positions of all 8 corners of a box.

Examples

    use gut::interval::EndPoint::*;

    assert_eq!(Corner::from(0b000), Corner { x: Lower, y: Lower, z: Lower });
    assert_eq!(Corner::from(0b001), Corner { x: Upper, y: Lower, z: Lower });
    assert_eq!(Corner::from(0b011), Corner { x: Upper, y: Upper, z: Lower });

impl From<Corner> for u8[src]

Corner can be encoded by 3 bits, identifying the positions of all 8 corners of a box.

Examples

    use gut::interval::EndPoint::*;

    assert_eq!(0b000u8, Corner { x: Lower, y: Lower, z: Lower }.into());
    assert_eq!(0b001u8, Corner { x: Upper, y: Lower, z: Lower }.into());
    assert_eq!(0b011u8, Corner { x: Upper, y: Upper, z: Lower }.into());

impl Clone for Corner[src]

impl Copy for Corner[src]

impl PartialEq<Corner> for Corner[src]

impl Debug for Corner[src]

impl StructuralPartialEq for Corner[src]

Auto Trait Implementations

impl Send for Corner

impl Sync for Corner

impl Unpin for Corner

impl UnwindSafe for Corner

impl RefUnwindSafe for Corner

Blanket Implementations

impl<T> Bytes for T[src]

impl<T> Pod for T where
    T: 'static + Copy + Send + Sync + Any
[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 = !

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.

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

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

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