Struct symphonia_core::conv::dither::RandomNoise
source · pub struct RandomNoise(pub i32);
Expand description
RandomNoise
represents a sample of noise of a specified length in bits.
TODO: RandomNoise
should be parameterized by the number of bits once const generics land.
Tuple Fields§
§0: i32
Implementations§
Trait Implementations§
source§impl Clone for RandomNoise
impl Clone for RandomNoise
source§fn clone(&self) -> RandomNoise
fn clone(&self) -> RandomNoise
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 Debug for RandomNoise
impl Debug for RandomNoise
source§impl Default for RandomNoise
impl Default for RandomNoise
source§fn default() -> RandomNoise
fn default() -> RandomNoise
Returns the “default value” for a type. Read more
source§impl Ord for RandomNoise
impl Ord for RandomNoise
source§fn cmp(&self, other: &RandomNoise) -> Ordering
fn cmp(&self, other: &RandomNoise) -> Ordering
1.21.0 · source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
source§impl PartialEq for RandomNoise
impl PartialEq for RandomNoise
source§fn eq(&self, other: &RandomNoise) -> bool
fn eq(&self, other: &RandomNoise) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl PartialOrd for RandomNoise
impl PartialOrd for RandomNoise
source§fn partial_cmp(&self, other: &RandomNoise) -> Option<Ordering>
fn partial_cmp(&self, other: &RandomNoise) -> Option<Ordering>
1.0.0 · source§fn le(&self, other: &Rhs) -> bool
fn le(&self, other: &Rhs) -> bool
This method tests less than or equal to (for
self
and other
) and is used by the <=
operator. Read moreimpl Copy for RandomNoise
impl Eq for RandomNoise
impl StructuralPartialEq for RandomNoise
Auto Trait Implementations§
impl RefUnwindSafe for RandomNoise
impl Send for RandomNoise
impl Sync for RandomNoise
impl Unpin for RandomNoise
impl UnwindSafe for RandomNoise
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