pub struct Position(/* private fields */);Expand description
A wraper struct to hold x, z and y where y is the height
§Note
An integer/block position consists of three components:
xranging from -33554432 to 33554431.zranging from -33554432 to 33554431.yranging from -2048 to 2047.pub struct Position(i32, i32, i16);
Trait Implementations§
source§impl ImportantFunctions for Position
impl ImportantFunctions for Position
§type ReturnType = <Position as ImportantFunctions>::InputType
type ReturnType = <Position as ImportantFunctions>::InputType
The type returned by
get_valuesource§fn get_value(&self) -> Self::ReturnType
fn get_value(&self) -> Self::ReturnType
A function that returns the hold data
source§impl PartialEq for Position
impl PartialEq for Position
impl StructuralPartialEq for Position
Auto Trait Implementations§
impl Freeze for Position
impl RefUnwindSafe for Position
impl Send for Position
impl Sync for Position
impl Unpin for Position
impl UnwindSafe for Position
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more