Struct Oversample
#[repr(transparent)]pub struct Oversample(pub u32);Expand description
Oversampling configuration. OVERSAMPLE should not be combined with SCAN. The RESOLUTION is applied before averaging, thus for high OVERSAMPLE a higher RESOLUTION should be used.
Tuple Fields§
§0: u32Implementations§
§impl Oversample
impl Oversample
pub const fn oversample(&self) -> Oversample
pub const fn oversample(&self) -> Oversample
Oversample control.
pub const fn set_oversample(&mut self, val: Oversample)
pub const fn set_oversample(&mut self, val: Oversample)
Oversample control.
Trait Implementations§
§impl Clone for Oversample
impl Clone for Oversample
§fn clone(&self) -> Oversample
fn clone(&self) -> Oversample
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Copy for Oversample
§impl Debug for Oversample
impl Debug for Oversample
§impl Default for Oversample
impl Default for Oversample
§fn default() -> Oversample
fn default() -> Oversample
Returns the “default value” for a type. Read more
impl Eq for Oversample
§impl PartialEq for Oversample
impl PartialEq for Oversample
impl StructuralPartialEq for Oversample
Auto Trait Implementations§
impl Freeze for Oversample
impl RefUnwindSafe for Oversample
impl Send for Oversample
impl Sync for Oversample
impl Unpin for Oversample
impl UnsafeUnpin for Oversample
impl UnwindSafe for Oversample
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