pub struct Population {
pub entity: usize,
pub template: usize,
pub width: i32,
pub cells: Vec<[i32; 3]>,
pub herd_width: i32,
pub clock: i64,
pub cursor: i32,
}Expand description
PopulationComponent.
Fields§
§entity: usizeThe entity.
template: usizeThe template.
width: i32Cells per row.
cells: Vec<[i32; 3]>Capacity, count and next count per cell.
herd_width: i32Herd blocks per row.
clock: i64Towards the next 300 s step.
cursor: i32The next cell to recount.
Trait Implementations§
Source§impl Clone for Population
impl Clone for Population
Source§fn clone(&self) -> Population
fn clone(&self) -> Population
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 Population
impl Debug for Population
Source§impl PartialEq for Population
impl PartialEq for Population
impl StructuralPartialEq for Population
Auto Trait Implementations§
impl Freeze for Population
impl RefUnwindSafe for Population
impl Send for Population
impl Sync for Population
impl Unpin for Population
impl UnsafeUnpin for Population
impl UnwindSafe for Population
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