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>
impl<G, N> Sample for RecursiveSampler<G>
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>
fn try_convert<T, I, F>(self, from: F, try_into: I) -> TryConvert<Self, F, I>
source§fn zip<OS>(self, other: OS) -> Zip<Self, OS>
fn zip<OS>(self, other: OS) -> Zip<Self, OS>
“Zip” two samplers together. Functionally equivalent to
(self, other)
.source§fn chain_resample<F, RS>(
self,
transform: F,
subsamples: usize
) -> ChainResample<Self, F>
fn chain_resample<F, RS>( self, transform: F, subsamples: usize ) -> ChainResample<Self, F>
“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