Struct dahl_partition::Permutation [−][src]
pub struct Permutation(_);
A data structure representation a permutation of integers.
Implementations
impl Permutation
[src]
impl Permutation
[src]pub fn from_slice(x: &[usize]) -> Option<Self>
[src]
pub fn from_vector(x: Vec<usize>) -> Option<Self>
[src]
pub fn natural(n_items: usize) -> Self
[src]
pub fn random<T: Rng>(n_items: usize, rng: &mut T) -> Self
[src]
pub fn shuffle<T: Rng>(&mut self, rng: &mut T)
[src]
pub fn len(&self) -> usize
[src]
pub fn is_empty(&self) -> bool
[src]
pub fn slice_until(&self, end: usize) -> &[usize]
[src]
Trait Implementations
impl Debug for Permutation
[src]
impl Debug for Permutation
[src]Auto Trait Implementations
impl RefUnwindSafe for Permutation
impl Send for Permutation
impl Sync for Permutation
impl Unpin for Permutation
impl UnwindSafe for Permutation
Blanket Implementations
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]pub fn borrow_mut(&mut self) -> &mut T
[src]
pub fn borrow_mut(&mut self) -> &mut T
[src]Mutably borrows from an owned value. Read more
impl<V, T> VZip<V> for T where
V: MultiLane<T>,
impl<V, T> VZip<V> for T where
V: MultiLane<T>,