pub struct Partition {
pub from: u64,
pub until: u64,
pub groups: Vec<usize>,
}Expand description
A time interval in which agents in different groups cannot reach each other.
Fields§
§from: u64The first tick of the partition.
until: u64The tick at which the partition heals; it is active for ticks from..until.
groups: Vec<usize>The group of each agent, indexed by agent. Agents missing from the list form a group of their own each.
Implementations§
Trait Implementations§
impl Eq for Partition
impl StructuralPartialEq for Partition
Auto Trait Implementations§
impl Forget for Partition
impl Freeze for Partition
impl Move for Partition
impl RefUnwindSafe for Partition
impl Send for Partition
impl Sync for Partition
impl Unpin for Partition
impl UnsafeUnpin for Partition
impl UnwindSafe for Partition
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