pub trait StagedSamplerHook {
type E: Env<Tensor: R2lTensor>;
// Required method
fn hook(
&mut self,
core: &mut StagedSamplerCore<Self::E>,
) -> SamplerHookResult;
// Provided method
fn reset(&mut self) { ... }
}Expand description
Hook that controls the sequence of collection bounds for a staged sampler.
Required Associated Types§
Required Methods§
Sourcefn hook(&mut self, core: &mut StagedSamplerCore<Self::E>) -> SamplerHookResult
fn hook(&mut self, core: &mut StagedSamplerCore<Self::E>) -> SamplerHookResult
Returns the next collection instruction.
Provided Methods§
Dyn Compatibility§
This trait is dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".