pub struct HaltonSampler { /* private fields */ }Implementations§
Trait Implementations§
Source§impl Clone for HaltonSampler
impl Clone for HaltonSampler
Source§fn clone(&self) -> HaltonSampler
fn clone(&self) -> HaltonSampler
Returns a duplicate 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 Debug for HaltonSampler
impl Debug for HaltonSampler
Source§impl Default for HaltonSampler
impl Default for HaltonSampler
Source§fn default() -> HaltonSampler
fn default() -> HaltonSampler
Returns the “default value” for a type. Read more
Source§impl GlobalSampler for HaltonSampler
impl GlobalSampler for HaltonSampler
fn get_index_for_sample(&self, sample_num: i64) -> i64
fn sample_dimension(&self, index: i64, dim: u32) -> Float
fn get_base(&mut self) -> &mut BaseGlobalSampler
Source§impl PartialEq for HaltonSampler
impl PartialEq for HaltonSampler
Source§impl Sampler for HaltonSampler
impl Sampler for HaltonSampler
fn start_pixel(&mut self, p: &Point2i)
fn start_next_sample(&mut self) -> bool
fn set_sample_number(&mut self, sample_num: u32) -> bool
fn get_1d(&mut self) -> Float
fn get_2d(&mut self) -> Vector2f
fn request_1d_array(&mut self, n: u32)
fn request_2d_array(&mut self, n: u32)
fn get_1d_array(&mut self, n: u32) -> Option<Vec<Float>>
fn get_2d_array(&mut self, n: u32) -> Option<Vec<Vector2f>>
fn clone_with_seed(&self, _seed: u32) -> Arc<RwLock<dyn Sampler>>
fn get_samples_per_pixel(&self) -> u32
fn get_camera_sample(&mut self, p: &Point2i) -> CameraSample
fn round_count(&self, n: u32) -> u32
impl StructuralPartialEq for HaltonSampler
Auto Trait Implementations§
impl !Freeze for HaltonSampler
impl !RefUnwindSafe for HaltonSampler
impl Send for HaltonSampler
impl !Sync for HaltonSampler
impl Unpin for HaltonSampler
impl UnwindSafe for HaltonSampler
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
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 moreSource§impl<T> Pointable for T
impl<T> Pointable for T
Source§impl<R, P> ReadPrimitive<R> for P
impl<R, P> ReadPrimitive<R> for P
Source§fn read_from_little_endian(read: &mut R) -> Result<Self, Error>
fn read_from_little_endian(read: &mut R) -> Result<Self, Error>
Read this value from the supplied reader. Same as
ReadEndian::read_from_little_endian().