pub struct Legend<T> {
pub names: BTreeMap<char, String>,
pub terrains: BTreeMap<char, T>,
}Expand description
A map’s legend: tile character → terrain id as written, and what each resolved to.
Fields§
§names: BTreeMap<char, String>Character → terrain id, as written in the file.
terrains: BTreeMap<char, T>Character → resolved terrain.
Implementations§
Trait Implementations§
Source§impl<'de, T> Deserialize<'de> for Legend<T>where
T: Deserialize<'de>,
impl<'de, T> Deserialize<'de> for Legend<T>where
T: Deserialize<'de>,
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
impl<T: Eq> Eq for Legend<T>
impl<T: PartialEq> StructuralPartialEq for Legend<T>
Auto Trait Implementations§
impl<T> Freeze for Legend<T>
impl<T> RefUnwindSafe for Legend<T>where
T: RefUnwindSafe,
impl<T> Send for Legend<T>where
T: Send,
impl<T> Sync for Legend<T>where
T: Sync,
impl<T> Unpin for Legend<T>
impl<T> UnsafeUnpin for Legend<T>
impl<T> UnwindSafe for Legend<T>where
T: RefUnwindSafe,
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