Struct planetkit::globe::ChunkOrigin
[−]
[src]
pub struct ChunkOrigin { /* fields omitted */ }
Wrapper type around a Pos
that is known to express
a valid chunk origin.
Note that this does not save you from accidentally using
positions from multiple incompatible Globe
s with different
resolutions.
Methods
impl ChunkOrigin
[src]
fn new(
pos: GridPoint3,
root_resolution: [GridCoord; 2],
chunk_resolution: [GridCoord; 3]
) -> ChunkOrigin
[src]
pos: GridPoint3,
root_resolution: [GridCoord; 2],
chunk_resolution: [GridCoord; 3]
) -> ChunkOrigin
impl<'a> ChunkOrigin
[src]
fn pos(&'a self) -> &'a GridPoint3
[src]
Trait Implementations
impl Default for ChunkOrigin
[src]
fn default() -> ChunkOrigin
[src]
Returns the "default value" for a type. Read more
impl Clone for ChunkOrigin
[src]
fn clone(&self) -> ChunkOrigin
[src]
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0[src]
Performs copy-assignment from source
. Read more
impl Copy for ChunkOrigin
[src]
impl PartialEq for ChunkOrigin
[src]
fn eq(&self, __arg_0: &ChunkOrigin) -> bool
[src]
This method tests for self
and other
values to be equal, and is used by ==
. Read more
fn ne(&self, __arg_0: &ChunkOrigin) -> bool
[src]
This method tests for !=
.
impl Eq for ChunkOrigin
[src]
impl Debug for ChunkOrigin
[src]
impl Hash for ChunkOrigin
[src]
fn hash<__H: Hasher>(&self, __arg_0: &mut __H)
[src]
Feeds this value into the given [Hasher
]. Read more
fn hash_slice<H>(data: &[Self], state: &mut H) where
H: Hasher,
1.3.0[src]
H: Hasher,
Feeds a slice of this type into the given [Hasher
]. Read more
impl Into<GridPoint3> for ChunkOrigin
[src]
fn into(self) -> GridPoint3
[src]
Performs the conversion.