pub struct Dance {
position: [usize; 16],
exchange: [usize; 16],
}
Fields§
§position: [usize; 16]
The letter in each position from left to right
with a
represented by 0, b
by 1 and so on.
exchange: [usize; 16]
A map of initial letter to final letter taking into account all partner swaps.
a
is at index 0, b
at index 1. For convenience letters are represented by 0..15.
Implementations§
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Dance
impl RefUnwindSafe for Dance
impl Send for Dance
impl Sync for Dance
impl Unpin for Dance
impl UnwindSafe for Dance
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
source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)