Struct nano_ogmo::LevelLayer
source · [−]pub struct LevelLayer {Show 13 fields
pub name: String,
pub entities: Option<Vec<LevelEntity>>,
pub tileset: Option<String>,
pub data: Option<Vec<i32>>,
pub export_id: String,
pub offset_x: u32,
pub offset_y: u32,
pub grid_cell_width: u32,
pub grid_cell_height: u32,
pub grid_cells_x: u32,
pub grid_cells_y: u32,
pub export_mode: Option<u32>,
pub array_mode: Option<u32>,
}
Fields
name: String
entities: Option<Vec<LevelEntity>>
tileset: Option<String>
data: Option<Vec<i32>>
export_id: String
offset_x: u32
offset_y: u32
grid_cell_width: u32
grid_cell_height: u32
grid_cells_x: u32
grid_cells_y: u32
export_mode: Option<u32>
array_mode: Option<u32>
Trait Implementations
sourceimpl Clone for LevelLayer
impl Clone for LevelLayer
sourcefn clone(&self) -> LevelLayer
fn clone(&self) -> LevelLayer
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read more
sourceimpl DeJson for LevelLayer
impl DeJson for LevelLayer
Auto Trait Implementations
impl RefUnwindSafe for LevelLayer
impl Send for LevelLayer
impl Sync for LevelLayer
impl Unpin for LevelLayer
impl UnwindSafe for LevelLayer
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
sourceimpl<T> ToOwned for T where
T: Clone,
impl<T> ToOwned for T where
T: Clone,
type Owned = T
type Owned = T
The resulting type after obtaining ownership.
sourcefn clone_into(&self, target: &mut T)
fn clone_into(&self, target: &mut T)
🔬 This is a nightly-only experimental API. (
toowned_clone_into
)Uses borrowed data to replace owned data, usually by cloning. Read more