pub struct GridPosition {
pub x: i32,
pub y: i32,
pub z: i32,
}Expand description
GridPosition : Describes the position in a 3D grid on which the element must be placed. The grid origin (x=0, y=0) is on the top left, the x coordinate increases to the right, the y coordinate increases downwards and the z coordinate increases towards the foreground.
Fields§
§x: i32§y: i32§z: i32Implementations§
Source§impl GridPosition
impl GridPosition
Sourcepub fn new(x: i32, y: i32, z: i32) -> GridPosition
pub fn new(x: i32, y: i32, z: i32) -> GridPosition
Describes the position in a 3D grid on which the element must be placed. The grid origin (x=0, y=0) is on the top left, the x coordinate increases to the right, the y coordinate increases downwards and the z coordinate increases towards the foreground.
Trait Implementations§
Source§impl Clone for GridPosition
impl Clone for GridPosition
Source§fn clone(&self) -> GridPosition
fn clone(&self) -> GridPosition
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for GridPosition
impl Debug for GridPosition
Source§impl Default for GridPosition
impl Default for GridPosition
Source§fn default() -> GridPosition
fn default() -> GridPosition
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for GridPosition
impl<'de> Deserialize<'de> for GridPosition
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl PartialEq for GridPosition
impl PartialEq for GridPosition
Source§impl Serialize for GridPosition
impl Serialize for GridPosition
impl StructuralPartialEq for GridPosition
Auto Trait Implementations§
impl Freeze for GridPosition
impl RefUnwindSafe for GridPosition
impl Send for GridPosition
impl Sync for GridPosition
impl Unpin for GridPosition
impl UnwindSafe for GridPosition
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