pub struct UnstableAmplitude(/* private fields */);
Available on crate features
events
and unstable-msc3245-v1-compat
only.Expand description
The unstable version of the amplitude of a waveform sample.
Must be an integer between 0 and 1024.
Implementations§
Source§impl UnstableAmplitude
impl UnstableAmplitude
Sourcepub fn new(value: u16) -> UnstableAmplitude
pub fn new(value: u16) -> UnstableAmplitude
Creates a new UnstableAmplitude
with the given value.
It will saturate if it is bigger than UnstableAmplitude::MAX
.
Trait Implementations§
Source§impl Clone for UnstableAmplitude
impl Clone for UnstableAmplitude
Source§fn clone(&self) -> UnstableAmplitude
fn clone(&self) -> UnstableAmplitude
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 UnstableAmplitude
impl Debug for UnstableAmplitude
Source§impl Default for UnstableAmplitude
impl Default for UnstableAmplitude
Source§fn default() -> UnstableAmplitude
fn default() -> UnstableAmplitude
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for UnstableAmplitude
impl<'de> Deserialize<'de> for UnstableAmplitude
Source§fn deserialize<D>(
deserializer: D,
) -> Result<UnstableAmplitude, <D as Deserializer<'de>>::Error>where
D: Deserializer<'de>,
fn deserialize<D>(
deserializer: D,
) -> Result<UnstableAmplitude, <D as Deserializer<'de>>::Error>where
D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl From<u16> for UnstableAmplitude
impl From<u16> for UnstableAmplitude
Source§fn from(value: u16) -> UnstableAmplitude
fn from(value: u16) -> UnstableAmplitude
Converts to this type from the input type.
Source§impl Hash for UnstableAmplitude
impl Hash for UnstableAmplitude
Source§impl Ord for UnstableAmplitude
impl Ord for UnstableAmplitude
Source§fn cmp(&self, other: &UnstableAmplitude) -> Ordering
fn cmp(&self, other: &UnstableAmplitude) -> 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 UnstableAmplitude
impl PartialEq for UnstableAmplitude
Source§impl PartialOrd for UnstableAmplitude
impl PartialOrd for UnstableAmplitude
Source§impl Serialize for UnstableAmplitude
impl Serialize for UnstableAmplitude
Source§fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
Serialize this value into the given Serde serializer. Read more
impl Copy for UnstableAmplitude
impl Eq for UnstableAmplitude
impl StructuralPartialEq for UnstableAmplitude
Auto Trait Implementations§
impl Freeze for UnstableAmplitude
impl RefUnwindSafe for UnstableAmplitude
impl Send for UnstableAmplitude
impl Sync for UnstableAmplitude
impl Unpin for UnstableAmplitude
impl UnwindSafe for UnstableAmplitude
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§impl<Q, K> Comparable<K> for Q
impl<Q, K> Comparable<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key
and return true
if they are equal.