Struct monochord::Hz
[−]
[src]
pub struct Hz(pub f32);
Hertz is the standard unit of frequency.
It is also the standard unit of pitch as well.
Trait Implementations
impl Debug for Hz
[src]
impl Clone for Hz
[src]
fn clone(&self) -> Hz
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0
Performs copy-assignment from source
. Read more
impl Copy for Hz
[src]
impl PartialEq for Hz
[src]
fn eq(&self, __arg_0: &Hz) -> bool
This method tests for self
and other
values to be equal, and is used by ==
. Read more
fn ne(&self, __arg_0: &Hz) -> bool
This method tests for !=
.
impl Add<Cents> for Hz
[src]
You can add an interval to Hz. For example:
Hz(440.0) + Cents(702.0); // Hz(660.0)
type Output = Hz
The resulting type after applying the +
operator
fn add(self, rhs: Cents) -> Self::Output
The method for the +
operator
impl Sub<Cents> for Hz
[src]
type Output = Hz
The resulting type after applying the -
operator
fn sub(self, rhs: Cents) -> Self::Output
The method for the -
operator
impl Mul<f32> for Hz
[src]
type Output = Hz
The resulting type after applying the *
operator
fn mul(self, rhs: f32) -> Self::Output
The method for the *
operator