pub struct Permutations {
pub seed: u64,
pub instance_name: String,
pub permutations: Vec<Vec<i32>>,
}Expand description
Represents a set of generated team permutations along with metadata.
Permutations stores multiple random permutations of team IDs,
along with the seed used for generation and the instance name. This is useful
for saving and later reusing or analyzing the generated permutations.
§Fields
seed- The seed used for generating the permutations.instance_name- The name of the problem instance.permutations- A vector of vectors, where each inner vector represents one permutation of team IDs.
§Example
let perms = Permutations {
seed: 42,
instance_name: "instance_01".to_string(),
permutations: vec![
vec![0,1,2,3],
vec![3,2,1,0],
],
};Fields§
§seed: u64§instance_name: String§permutations: Vec<Vec<i32>>Trait Implementations§
Auto Trait Implementations§
impl Freeze for Permutations
impl RefUnwindSafe for Permutations
impl Send for Permutations
impl Sync for Permutations
impl Unpin for Permutations
impl UnwindSafe for Permutations
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