[−][src]Struct gut::bbox::Corner
Structure for accessing corner positions of a bounding box.
Fields
x: EndPoint
y: EndPoint
z: 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]
T: 'static + Copy + Send + Sync + Any,
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
fn to_owned(&self) -> T
[src]
fn clone_into(&self, target: &mut T)
[src]
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = !
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error
The type returned in the event of a conversion error.
fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>
[src]
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,