pub struct AudioBufferOccupancy(/* private fields */);Implementations§
Source§impl AudioBufferOccupancy
impl AudioBufferOccupancy
pub const fn from_percent(percent: u8) -> Option<Self>
pub const fn from_raw_percent(percent: u32) -> Self
pub const fn raw_percent(self) -> u32
pub const fn percent(self) -> Option<u8>
Trait Implementations§
Source§impl Clone for AudioBufferOccupancy
impl Clone for AudioBufferOccupancy
Source§fn clone(&self) -> AudioBufferOccupancy
fn clone(&self) -> AudioBufferOccupancy
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 moreSource§impl Debug for AudioBufferOccupancy
impl Debug for AudioBufferOccupancy
Source§impl Default for AudioBufferOccupancy
impl Default for AudioBufferOccupancy
Source§fn default() -> AudioBufferOccupancy
fn default() -> AudioBufferOccupancy
Returns the “default value” for a type. Read more
Source§impl Hash for AudioBufferOccupancy
impl Hash for AudioBufferOccupancy
Source§impl PartialEq for AudioBufferOccupancy
impl PartialEq for AudioBufferOccupancy
Source§fn eq(&self, other: &AudioBufferOccupancy) -> bool
fn eq(&self, other: &AudioBufferOccupancy) -> bool
Tests for
self and other values to be equal, and is used by ==.impl Copy for AudioBufferOccupancy
impl Eq for AudioBufferOccupancy
impl StructuralPartialEq for AudioBufferOccupancy
Auto Trait Implementations§
impl Freeze for AudioBufferOccupancy
impl RefUnwindSafe for AudioBufferOccupancy
impl Send for AudioBufferOccupancy
impl Sync for AudioBufferOccupancy
impl Unpin for AudioBufferOccupancy
impl UnsafeUnpin for AudioBufferOccupancy
impl UnwindSafe for AudioBufferOccupancy
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