Enum BoundaryPolicy
pub enum BoundaryPolicy {
AllowRepeat,
AvoidImmediateRepeat,
}Expand description
Whether a new cycle may begin with the previous cycle’s final index.
Variants§
AllowRepeat
Allow boundary repeats, preserving the original shuffle-bag sequence.
AvoidImmediateRepeat
Exclude boundary repeats when the bag has at least two items. Singleton repeats are unavoidable and remain permitted.
Trait Implementations§
§impl Clone for BoundaryPolicy
impl Clone for BoundaryPolicy
§fn clone(&self) -> BoundaryPolicy
fn clone(&self) -> BoundaryPolicy
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read more§impl Debug for BoundaryPolicy
impl Debug for BoundaryPolicy
§impl Default for BoundaryPolicy
impl Default for BoundaryPolicy
§fn default() -> BoundaryPolicy
fn default() -> BoundaryPolicy
Returns the “default value” for a type. Read more
§impl PartialEq for BoundaryPolicy
impl PartialEq for BoundaryPolicy
impl Copy for BoundaryPolicy
impl Eq for BoundaryPolicy
impl StructuralPartialEq for BoundaryPolicy
Auto Trait Implementations§
impl Freeze for BoundaryPolicy
impl RefUnwindSafe for BoundaryPolicy
impl Send for BoundaryPolicy
impl Sync for BoundaryPolicy
impl Unpin for BoundaryPolicy
impl UnwindSafe for BoundaryPolicy
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