Struct create_vox::Voxel[][src]

pub struct Voxel {
    pub position: (u8, u8, u8),
    pub colorindex: u8,
}

A single voxel.

Fields

position: (u8, u8, u8)colorindex: u8

Implementations

impl Voxel[src]

pub fn new(x: u8, y: u8, z: u8, colorindex_value: u8) -> Voxel[src]

Creates new voxel.

Example

use create_vox::Voxel;

let voxel = Voxel::new(5,0,0,1);

Trait Implementations

impl Add<Voxel> for Voxobject[src]

type Output = Voxobject

The resulting type after applying the + operator.

impl Add<Voxel> for Voxel[src]

type Output = Vec<Voxel>

The resulting type after applying the + operator.

impl AddAssign<Voxel> for Voxobject[src]

impl Clone for Voxel[src]

impl PartialEq<Voxel> for Voxel[src]

Auto Trait Implementations

impl RefUnwindSafe for Voxel

impl Send for Voxel

impl Sync for Voxel

impl Unpin for Voxel

impl UnwindSafe for Voxel

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.