pub enum ConditionSampler<D0, D1, V>{
Array(Vec<MArrD1<D0, SimplexD1<D1, V>>>),
Random(MArrD1<D0, SimplexContainer<D1::Idx, V>>),
}Variants§
Array(Vec<MArrD1<D0, SimplexD1<D1, V>>>)
Random(MArrD1<D0, SimplexContainer<D1::Idx, V>>)
Implementations§
Trait Implementations§
Source§impl<V, D0, D1> DeserializeAt<ConditionSampler<D0, D1, V>> for ConditionOption<V>where
V: MyFloat + for<'a> Deserialize<'a>,
Open01: Distribution<V>,
D0: Domain<Idx: Debug> + Keys<D0::Idx>,
D1: Domain<Idx: Debug + From<usize> + Copy> + Keys<D1::Idx>,
impl<V, D0, D1> DeserializeAt<ConditionSampler<D0, D1, V>> for ConditionOption<V>where
V: MyFloat + for<'a> Deserialize<'a>,
Open01: Distribution<V>,
D0: Domain<Idx: Debug> + Keys<D0::Idx>,
D1: Domain<Idx: Debug + From<usize> + Copy> + Keys<D1::Idx>,
Auto Trait Implementations§
impl<D0, D1, V> Freeze for ConditionSampler<D0, D1, V>
impl<D0, D1, V> RefUnwindSafe for ConditionSampler<D0, D1, V>where
D0: RefUnwindSafe,
<D1 as Domain>::Idx: RefUnwindSafe,
V: RefUnwindSafe,
<V as SampleUniform>::Sampler: RefUnwindSafe,
D1: RefUnwindSafe,
impl<D0, D1, V> Send for ConditionSampler<D0, D1, V>
impl<D0, D1, V> Sync for ConditionSampler<D0, D1, V>
impl<D0, D1, V> Unpin for ConditionSampler<D0, D1, V>
impl<D0, D1, V> UnwindSafe for ConditionSampler<D0, D1, V>where
D0: UnwindSafe,
<D1 as Domain>::Idx: UnwindSafe,
V: UnwindSafe,
<V as SampleUniform>::Sampler: UnwindSafe,
D1: 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
§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more