pub struct MapDefinition {
pub region_x: u16,
pub region_y: u16,
pub data: Vec<Vec<Vec<MapData>>>,
}Expand description
Contains all the information about a certain map fetched from the cache through the MapLoader.
Fields§
§region_x: u16§region_y: u16§data: Vec<Vec<Vec<MapData>>>Implementations§
Trait Implementations§
Source§impl Clone for MapDefinition
impl Clone for MapDefinition
Source§fn clone(&self) -> MapDefinition
fn clone(&self) -> MapDefinition
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 MapDefinition
impl Debug for MapDefinition
Source§impl Default for MapDefinition
impl Default for MapDefinition
Source§fn default() -> MapDefinition
fn default() -> MapDefinition
Returns the “default value” for a type. Read more
Source§impl Definition for MapDefinition
impl Definition for MapDefinition
Source§impl<'de> Deserialize<'de> for MapDefinition
impl<'de> Deserialize<'de> for MapDefinition
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 Hash for MapDefinition
impl Hash for MapDefinition
Source§impl Ord for MapDefinition
impl Ord for MapDefinition
Source§fn cmp(&self, other: &MapDefinition) -> Ordering
fn cmp(&self, other: &MapDefinition) -> Ordering
1.21.0 · 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
Source§impl PartialEq for MapDefinition
impl PartialEq for MapDefinition
Source§impl PartialOrd for MapDefinition
impl PartialOrd for MapDefinition
Source§impl Serialize for MapDefinition
impl Serialize for MapDefinition
impl Eq for MapDefinition
impl StructuralPartialEq for MapDefinition
Auto Trait Implementations§
impl Freeze for MapDefinition
impl RefUnwindSafe for MapDefinition
impl Send for MapDefinition
impl Sync for MapDefinition
impl Unpin for MapDefinition
impl UnwindSafe for MapDefinition
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<D> FetchDefinition for Dwhere
D: Definition,
impl<D> FetchDefinition for Dwhere
D: Definition,
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more