Struct sample_std::recursive::RecursiveSampler
source · pub struct RecursiveSampler<G> {
pub depth: Option<Range<usize>>,
pub node: G,
}
Fields§
§depth: Option<Range<usize>>
§node: G
Trait Implementations§
source§impl<G: Clone> Clone for RecursiveSampler<G>
impl<G: Clone> Clone for RecursiveSampler<G>
source§fn clone(&self) -> RecursiveSampler<G>
fn clone(&self) -> RecursiveSampler<G>
Returns a copy 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 moresource§impl<G: Debug> Debug for RecursiveSampler<G>
impl<G: Debug> Debug for RecursiveSampler<G>
source§impl<G, N> Sample for RecursiveSampler<G>where
G: Recursion<Output = N> + Sample<Output = N> + Clone,
N: 'static,
impl<G, N> Sample for RecursiveSampler<G>where G: Recursion<Output = N> + Sample<Output = N> + Clone, N: 'static,
type Output = N
source§fn shrink(&self, _: Self::Output) -> Shrunk<'_, Self::Output>
fn shrink(&self, _: Self::Output) -> Shrunk<'_, Self::Output>
Shrink the given value into a “smaller” value. Defaults to an empty
iterator (which represents that the value cannot be shrunk).
source§fn try_convert<T, I, F>(self, from: F, try_into: I) -> TryConvert<Self, F, I>where
Self: Sized,
F: Fn(Self::Output) -> T + Copy,
I: Fn(T) -> Option<Self::Output>,
fn try_convert<T, I, F>(self, from: F, try_into: I) -> TryConvert<Self, F, I>where Self: Sized, F: Fn(Self::Output) -> T + Copy, I: Fn(T) -> Option<Self::Output>,
source§fn zip<OS>(self, other: OS) -> Zip<Self, OS>where
Self: Sized,
OS: Sample,
fn zip<OS>(self, other: OS) -> Zip<Self, OS>where Self: Sized, OS: Sample,
“Zip” two samplers together. Functionally equivalent to
(self, other)
.source§fn chain_resample<F, RS>(
self,
transform: F,
subsamples: usize
) -> ChainResample<Self, F>where
Self: Sized,
F: Fn(Self::Output) -> RS,
RS: Sample,
fn chain_resample<F, RS>( self, transform: F, subsamples: usize ) -> ChainResample<Self, F>where Self: Sized, F: Fn(Self::Output) -> RS, RS: Sample,
“Resampling” method for chaining samplers. Read more
Auto Trait Implementations§
impl<G> RefUnwindSafe for RecursiveSampler<G>where G: RefUnwindSafe,
impl<G> Send for RecursiveSampler<G>where G: Send,
impl<G> Sync for RecursiveSampler<G>where G: Sync,
impl<G> Unpin for RecursiveSampler<G>where G: Unpin,
impl<G> UnwindSafe for RecursiveSampler<G>where G: 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