Struct mcpi_api::TileVec3[][src]

pub struct TileVec3 {
    pub x: i32,
    pub y: i32,
    pub z: i32,
}

Struct used to specify tile positions.

Fields

x: i32y: i32z: i32

Implementations

impl TileVec3[src]

pub fn from(x: i32, y: i32, z: i32) -> TileVec3[src]

Function to generate a TileVec3 from 3 i32’s

pub fn from_vector(vec: &Vec<i32>) -> TileVec3[src]

Function to generate a TileVec3 from a Vec

Panics

This function panics if the vector contains less then 3 elements

Trait Implementations

impl Debug for TileVec3[src]

Auto Trait Implementations

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, 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.