pub struct PlayerVolume { /* private fields */ }Expand description
Player volume.
Values passed to this struct will be clamped between 0.0 (no sound at all) and 1.0 (regular
volume).
Implementations§
Source§impl PlayerVolume
impl PlayerVolume
Trait Implementations§
Source§impl Clone for PlayerVolume
impl Clone for PlayerVolume
Source§fn clone(&self) -> PlayerVolume
fn clone(&self) -> PlayerVolume
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 PlayerVolume
impl Debug for PlayerVolume
Source§impl Default for PlayerVolume
impl Default for PlayerVolume
Source§impl<'de> Deserialize<'de> for PlayerVolume
impl<'de> Deserialize<'de> for PlayerVolume
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl Display for PlayerVolume
impl Display for PlayerVolume
Source§impl PartialEq for PlayerVolume
impl PartialEq for PlayerVolume
Source§fn eq(&self, other: &PlayerVolume) -> bool
fn eq(&self, other: &PlayerVolume) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl Serialize for PlayerVolume
impl Serialize for PlayerVolume
impl Copy for PlayerVolume
impl StructuralPartialEq for PlayerVolume
Auto Trait Implementations§
impl Freeze for PlayerVolume
impl RefUnwindSafe for PlayerVolume
impl Send for PlayerVolume
impl Sync for PlayerVolume
impl Unpin for PlayerVolume
impl UnsafeUnpin for PlayerVolume
impl UnwindSafe for PlayerVolume
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