pub struct ObjectLocation {
pub plane: String,
pub chunk: (i32, i64, i64),
pub path: Vec<usize>,
}Expand description
Where an object is: its chunk, and its place in the chunk.
Fields§
§plane: String§chunk: (i32, i64, i64)The chunk’s key in Plane::chunks: (layer, cx, cy).
path: Vec<usize>The object’s index in the chunk’s objects, then, for an inventory
entry, its index in the inventory of each object down to it. A
top-level object’s path has one index.
Trait Implementations§
Source§impl Clone for ObjectLocation
impl Clone for ObjectLocation
Source§impl Debug for ObjectLocation
impl Debug for ObjectLocation
impl Eq for ObjectLocation
Source§impl Hash for ObjectLocation
impl Hash for ObjectLocation
Source§impl Ord for ObjectLocation
impl Ord for ObjectLocation
1.21.0 (const: unstable) · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
1.21.0 (const: unstable) · Source§fn min(self, other: Self) -> Selfwhere
Self: Sized,
fn min(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the minimum of two values. Read more
Source§impl PartialEq for ObjectLocation
impl PartialEq for ObjectLocation
Source§impl PartialOrd for ObjectLocation
impl PartialOrd for ObjectLocation
impl StructuralPartialEq for ObjectLocation
Auto Trait Implementations§
impl Forget for ObjectLocation
impl Freeze for ObjectLocation
impl Move for ObjectLocation
impl RefUnwindSafe for ObjectLocation
impl Send for ObjectLocation
impl Sync for ObjectLocation
impl Unpin for ObjectLocation
impl UnsafeUnpin for ObjectLocation
impl UnwindSafe for ObjectLocation
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