pub enum LayerType {
Entities(Vec<WorldEntity>),
GidTiles(HashMap<SpatialIndex, WorldTile>),
IntTiles(Vec<usize>),
}
Variants§
Trait Implementations§
Source§impl<'de> Deserialize<'de> for LayerType
impl<'de> Deserialize<'de> for LayerType
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 From<&LayerInstance> for LayerType
impl From<&LayerInstance> for LayerType
Source§fn from(value: &LayerInstance) -> Self
fn from(value: &LayerInstance) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for LayerType
impl RefUnwindSafe for LayerType
impl Send for LayerType
impl Sync for LayerType
impl Unpin for LayerType
impl UnwindSafe for LayerType
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