pub struct SamplerCtx<'a> {
pub rng: &'a mut dyn Rng,
pub history: &'a [u32],
}Expand description
Randomness and token history supplied to one sampling stage.
Fields§
§rng: &'a mut dyn RngRandom source for stages that draw.
history: &'a [u32]Token history in chronological order.
Trait Implementations§
Auto Trait Implementations§
impl<'a> !RefUnwindSafe for SamplerCtx<'a>
impl<'a> !Send for SamplerCtx<'a>
impl<'a> !Sync for SamplerCtx<'a>
impl<'a> !UnwindSafe for SamplerCtx<'a>
impl<'a> Freeze for SamplerCtx<'a>
impl<'a> Unpin for SamplerCtx<'a>
impl<'a> UnsafeUnpin for SamplerCtx<'a>
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