Struct discrete::Permutation
source · pub struct Permutation<T = Data>(/* private fields */);
Expand description
Dimension is natural number, position is a list of numbers.
Trait Implementations§
source§impl<N, T> Space<N> for Permutation<Of<T>>where
T: Space<N>,
T::Pos: Clone,
N: Clone + From<usize> + TryInto<usize> + for<'a> AddAssign<&'a N> + for<'a> MulAssign<&'a N> + Sub<usize, Output = N> + SubAssign + DivAssign<usize> + MulAssign<usize> + PartialOrd,
<N as TryInto<usize>>::Error: Debug,
for<'a> &'a N: Sub<usize, Output = N> + Mul<&'a N, Output = N> + Div<usize, Output = N> + Div<&'a N, Output = N>,
impl<N, T> Space<N> for Permutation<Of<T>>where
T: Space<N>,
T::Pos: Clone,
N: Clone + From<usize> + TryInto<usize> + for<'a> AddAssign<&'a N> + for<'a> MulAssign<&'a N> + Sub<usize, Output = N> + SubAssign + DivAssign<usize> + MulAssign<usize> + PartialOrd,
<N as TryInto<usize>>::Error: Debug,
for<'a> &'a N: Sub<usize, Output = N> + Mul<&'a N, Output = N> + Div<usize, Output = N> + Div<&'a N, Output = N>,
Auto Trait Implementations§
impl<T> RefUnwindSafe for Permutation<T>where
T: RefUnwindSafe,
impl<T> Send for Permutation<T>where
T: Send,
impl<T> Sync for Permutation<T>where
T: Sync,
impl<T> Unpin for Permutation<T>where
T: Unpin,
impl<T> UnwindSafe for Permutation<T>where
T: UnwindSafe,
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