pub struct Cycle<const N: usize> {
pub steps: [usize; N],
}Expand description
A fixed-size cycle on the Eisenstein lattice.
This is useful for compile-time-known cycle sizes.
Fields§
§steps: [usize; N]Step indices (0..5 each)
Implementations§
Trait Implementations§
Auto Trait Implementations§
impl<const N: usize> Freeze for Cycle<N>
impl<const N: usize> RefUnwindSafe for Cycle<N>
impl<const N: usize> Send for Cycle<N>
impl<const N: usize> Sync for Cycle<N>
impl<const N: usize> Unpin for Cycle<N>
impl<const N: usize> UnsafeUnpin for Cycle<N>
impl<const N: usize> UnwindSafe for Cycle<N>
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