Enum micro_games_kit::pcg::ThresholdGenerator
source · pub enum ThresholdGenerator<'a, T: Copy> {
Constant {
threshold: T,
value_upper: T,
value_lower: T,
},
Samples {
thresholds: &'a Grid<T>,
value_upper: T,
value_lower: T,
},
}Variants§
Trait Implementations§
source§impl<'a, T: Copy + PartialOrd + Default> GridGenetator<T> for ThresholdGenerator<'a, T>
impl<'a, T: Copy + PartialOrd + Default> GridGenetator<T> for ThresholdGenerator<'a, T>
Auto Trait Implementations§
impl<'a, T> RefUnwindSafe for ThresholdGenerator<'a, T>where
T: RefUnwindSafe,
impl<'a, T> Send for ThresholdGenerator<'a, T>
impl<'a, T> Sync for ThresholdGenerator<'a, T>where
T: Sync,
impl<'a, T> Unpin for ThresholdGenerator<'a, T>where
T: Unpin,
impl<'a, T> UnwindSafe for ThresholdGenerator<'a, T>where
T: UnwindSafe + RefUnwindSafe,
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