#[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: u32
Implementations§
Source§impl Oversample
impl Oversample
Sourcepub const fn oversample(&self) -> Oversample
pub const fn oversample(&self) -> Oversample
Oversample control
Sourcepub fn set_oversample(&mut self, val: Oversample)
pub fn set_oversample(&mut self, val: Oversample)
Oversample control
Trait Implementations§
Source§impl Clone for Oversample
impl Clone for Oversample
Source§fn clone(&self) -> Oversample
fn clone(&self) -> Oversample
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 Default for Oversample
impl Default for Oversample
Source§fn default() -> Oversample
fn default() -> Oversample
Returns the “default value” for a type. Read more
Source§impl PartialEq for Oversample
impl PartialEq for Oversample
impl Copy for Oversample
impl Eq 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 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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)