Struct euphony_core::time::measure::Measure[][src]

pub struct Measure(pub u64, pub u64);

Implementations

impl Measure[src]

pub fn new<Value: Into<Self>>(value: Value) -> Self[src]

pub fn reduce(self) -> Self[src]

pub fn simplify(self, denominator: u64) -> Self[src]

pub fn truncate(self) -> Self[src]

pub fn ceil(self) -> Self[src]

pub fn is_whole(&self) -> bool[src]

pub fn whole(self) -> u64[src]

pub fn try_into_whole(&self) -> Option<u64>[src]

pub fn fraction(self) -> Self[src]

pub fn as_ratio(self) -> Ratio<u64>[src]

pub fn as_f32(self) -> f32[src]

pub fn as_f64(self) -> f64[src]

impl Measure[src]

pub fn count(self) -> u64[src]

pub fn beat(self) -> Beat[src]

Trait Implementations

impl Add<(i16, i16)> for Measure[src]

type Output = Measure

The resulting type after applying the + operator.

impl Add<(i32, i32)> for Measure[src]

type Output = Measure

The resulting type after applying the + operator.

impl Add<(i64, i64)> for Measure[src]

type Output = Measure

The resulting type after applying the + operator.

impl Add<(i8, i8)> for Measure[src]

type Output = Measure

The resulting type after applying the + operator.

impl Add<(isize, isize)> for Measure[src]

type Output = Measure

The resulting type after applying the + operator.

impl Add<(u16, u16)> for Measure[src]

type Output = Measure

The resulting type after applying the + operator.

impl Add<(u32, u32)> for Measure[src]

type Output = Measure

The resulting type after applying the + operator.

impl Add<(u64, u64)> for Measure[src]

type Output = Measure

The resulting type after applying the + operator.

impl Add<(u8, u8)> for Measure[src]

type Output = Measure

The resulting type after applying the + operator.

impl Add<(usize, usize)> for Measure[src]

type Output = Measure

The resulting type after applying the + operator.

impl Add<Beat> for Measure[src]

type Output = CompoundDuration

The resulting type after applying the + operator.

impl Add<Measure> for CompoundDuration[src]

type Output = CompoundDuration

The resulting type after applying the + operator.

impl Add<Measure> for Beat[src]

type Output = CompoundDuration

The resulting type after applying the + operator.

impl Add<Measure> for Measure[src]

type Output = Measure

The resulting type after applying the + operator.

impl Add<i16> for Measure[src]

type Output = Measure

The resulting type after applying the + operator.

impl Add<i32> for Measure[src]

type Output = Measure

The resulting type after applying the + operator.

impl Add<i64> for Measure[src]

type Output = Measure

The resulting type after applying the + operator.

impl Add<i8> for Measure[src]

type Output = Measure

The resulting type after applying the + operator.

impl Add<isize> for Measure[src]

type Output = Measure

The resulting type after applying the + operator.

impl Add<u16> for Measure[src]

type Output = Measure

The resulting type after applying the + operator.

impl Add<u32> for Measure[src]

type Output = Measure

The resulting type after applying the + operator.

impl Add<u64> for Measure[src]

type Output = Measure

The resulting type after applying the + operator.

impl Add<u8> for Measure[src]

type Output = Measure

The resulting type after applying the + operator.

impl Add<usize> for Measure[src]

type Output = Measure

The resulting type after applying the + operator.

impl AddAssign<(i16, i16)> for Measure[src]

impl AddAssign<(i32, i32)> for Measure[src]

impl AddAssign<(i64, i64)> for Measure[src]

impl AddAssign<(i8, i8)> for Measure[src]

impl AddAssign<(isize, isize)> for Measure[src]

impl AddAssign<(u16, u16)> for Measure[src]

impl AddAssign<(u32, u32)> for Measure[src]

impl AddAssign<(u64, u64)> for Measure[src]

impl AddAssign<(u8, u8)> for Measure[src]

impl AddAssign<(usize, usize)> for Measure[src]

impl AddAssign<Measure> for CompoundDuration[src]

impl AddAssign<Measure> for Measure[src]

impl AddAssign<i16> for Measure[src]

impl AddAssign<i32> for Measure[src]

impl AddAssign<i64> for Measure[src]

impl AddAssign<i8> for Measure[src]

impl AddAssign<isize> for Measure[src]

impl AddAssign<u16> for Measure[src]

impl AddAssign<u32> for Measure[src]

impl AddAssign<u64> for Measure[src]

impl AddAssign<u8> for Measure[src]

impl AddAssign<usize> for Measure[src]

impl Clone for Measure[src]

impl Copy for Measure[src]

impl Debug for Measure[src]

impl Default for Measure[src]

impl Display for Measure[src]

impl Div<(i16, i16)> for Measure[src]

type Output = Measure

The resulting type after applying the / operator.

impl Div<(i32, i32)> for Measure[src]

type Output = Measure

The resulting type after applying the / operator.

impl Div<(i64, i64)> for Measure[src]

type Output = Measure

The resulting type after applying the / operator.

impl Div<(i8, i8)> for Measure[src]

type Output = Measure

The resulting type after applying the / operator.

impl Div<(isize, isize)> for Measure[src]

type Output = Measure

The resulting type after applying the / operator.

impl Div<(u16, u16)> for Measure[src]

type Output = Measure

The resulting type after applying the / operator.

impl Div<(u32, u32)> for Measure[src]

type Output = Measure

The resulting type after applying the / operator.

impl Div<(u64, u64)> for Measure[src]

type Output = Measure

The resulting type after applying the / operator.

impl Div<(u8, u8)> for Measure[src]

type Output = Measure

The resulting type after applying the / operator.

impl Div<(usize, usize)> for Measure[src]

type Output = Measure

The resulting type after applying the / operator.

impl Div<Measure> for Measure[src]

type Output = Ratio<u64>

The resulting type after applying the / operator.

impl Div<i16> for Measure[src]

type Output = Measure

The resulting type after applying the / operator.

impl Div<i32> for Measure[src]

type Output = Measure

The resulting type after applying the / operator.

impl Div<i64> for Measure[src]

type Output = Measure

The resulting type after applying the / operator.

impl Div<i8> for Measure[src]

type Output = Measure

The resulting type after applying the / operator.

impl Div<isize> for Measure[src]

type Output = Measure

The resulting type after applying the / operator.

impl Div<u16> for Measure[src]

type Output = Measure

The resulting type after applying the / operator.

impl Div<u32> for Measure[src]

type Output = Measure

The resulting type after applying the / operator.

impl Div<u64> for Measure[src]

type Output = Measure

The resulting type after applying the / operator.

impl Div<u8> for Measure[src]

type Output = Measure

The resulting type after applying the / operator.

impl Div<usize> for Measure[src]

type Output = Measure

The resulting type after applying the / operator.

impl DivAssign<(i16, i16)> for Measure[src]

impl DivAssign<(i32, i32)> for Measure[src]

impl DivAssign<(i64, i64)> for Measure[src]

impl DivAssign<(i8, i8)> for Measure[src]

impl DivAssign<(isize, isize)> for Measure[src]

impl DivAssign<(u16, u16)> for Measure[src]

impl DivAssign<(u32, u32)> for Measure[src]

impl DivAssign<(u64, u64)> for Measure[src]

impl DivAssign<(u8, u8)> for Measure[src]

impl DivAssign<(usize, usize)> for Measure[src]

impl DivAssign<i16> for Measure[src]

impl DivAssign<i32> for Measure[src]

impl DivAssign<i64> for Measure[src]

impl DivAssign<i8> for Measure[src]

impl DivAssign<isize> for Measure[src]

impl DivAssign<u16> for Measure[src]

impl DivAssign<u32> for Measure[src]

impl DivAssign<u64> for Measure[src]

impl DivAssign<u8> for Measure[src]

impl DivAssign<usize> for Measure[src]

impl Eq for Measure[src]

impl From<(i16, i16)> for Measure[src]

impl From<(i32, i32)> for Measure[src]

impl From<(i64, i64)> for Measure[src]

impl From<(i8, i8)> for Measure[src]

impl From<(isize, isize)> for Measure[src]

impl From<(u16, u16)> for Measure[src]

impl From<(u32, u32)> for Measure[src]

impl From<(u64, u64)> for Measure[src]

impl From<(u8, u8)> for Measure[src]

impl From<(usize, usize)> for Measure[src]

impl From<Measure> for CompoundDuration[src]

impl From<i16> for Measure[src]

impl From<i32> for Measure[src]

impl From<i64> for Measure[src]

impl From<i8> for Measure[src]

impl From<isize> for Measure[src]

impl From<u16> for Measure[src]

impl From<u32> for Measure[src]

impl From<u64> for Measure[src]

impl From<u8> for Measure[src]

impl From<usize> for Measure[src]

impl Hash for Measure[src]

impl Mul<(i16, i16)> for Measure[src]

type Output = Measure

The resulting type after applying the * operator.

impl Mul<(i32, i32)> for Measure[src]

type Output = Measure

The resulting type after applying the * operator.

impl Mul<(i64, i64)> for Measure[src]

type Output = Measure

The resulting type after applying the * operator.

impl Mul<(i8, i8)> for Measure[src]

type Output = Measure

The resulting type after applying the * operator.

impl Mul<(isize, isize)> for Measure[src]

type Output = Measure

The resulting type after applying the * operator.

impl Mul<(u16, u16)> for Measure[src]

type Output = Measure

The resulting type after applying the * operator.

impl Mul<(u32, u32)> for Measure[src]

type Output = Measure

The resulting type after applying the * operator.

impl Mul<(u64, u64)> for Measure[src]

type Output = Measure

The resulting type after applying the * operator.

impl Mul<(u8, u8)> for Measure[src]

type Output = Measure

The resulting type after applying the * operator.

impl Mul<(usize, usize)> for Measure[src]

type Output = Measure

The resulting type after applying the * operator.

impl Mul<Measure> for TimeContext[src]

type Output = Duration

The resulting type after applying the * operator.

impl Mul<Measure> for TimeSignature[src]

type Output = Beat

The resulting type after applying the * operator.

impl Mul<TimeSignature> for Measure[src]

type Output = Beat

The resulting type after applying the * operator.

impl Mul<i16> for Measure[src]

type Output = Measure

The resulting type after applying the * operator.

impl Mul<i32> for Measure[src]

type Output = Measure

The resulting type after applying the * operator.

impl Mul<i64> for Measure[src]

type Output = Measure

The resulting type after applying the * operator.

impl Mul<i8> for Measure[src]

type Output = Measure

The resulting type after applying the * operator.

impl Mul<isize> for Measure[src]

type Output = Measure

The resulting type after applying the * operator.

impl Mul<u16> for Measure[src]

type Output = Measure

The resulting type after applying the * operator.

impl Mul<u32> for Measure[src]

type Output = Measure

The resulting type after applying the * operator.

impl Mul<u64> for Measure[src]

type Output = Measure

The resulting type after applying the * operator.

impl Mul<u8> for Measure[src]

type Output = Measure

The resulting type after applying the * operator.

impl Mul<usize> for Measure[src]

type Output = Measure

The resulting type after applying the * operator.

impl MulAssign<(i16, i16)> for Measure[src]

impl MulAssign<(i32, i32)> for Measure[src]

impl MulAssign<(i64, i64)> for Measure[src]

impl MulAssign<(i8, i8)> for Measure[src]

impl MulAssign<(isize, isize)> for Measure[src]

impl MulAssign<(u16, u16)> for Measure[src]

impl MulAssign<(u32, u32)> for Measure[src]

impl MulAssign<(u64, u64)> for Measure[src]

impl MulAssign<(u8, u8)> for Measure[src]

impl MulAssign<(usize, usize)> for Measure[src]

impl MulAssign<i16> for Measure[src]

impl MulAssign<i32> for Measure[src]

impl MulAssign<i64> for Measure[src]

impl MulAssign<i8> for Measure[src]

impl MulAssign<isize> for Measure[src]

impl MulAssign<u16> for Measure[src]

impl MulAssign<u32> for Measure[src]

impl MulAssign<u64> for Measure[src]

impl MulAssign<u8> for Measure[src]

impl MulAssign<usize> for Measure[src]

impl Ord for Measure[src]

impl PartialEq<Measure> for Measure[src]

impl PartialEq<Measure> for Timecode[src]

impl PartialEq<i16> for Measure[src]

impl PartialEq<i32> for Measure[src]

impl PartialEq<i64> for Measure[src]

impl PartialEq<i8> for Measure[src]

impl PartialEq<isize> for Measure[src]

impl PartialEq<u16> for Measure[src]

impl PartialEq<u32> for Measure[src]

impl PartialEq<u64> for Measure[src]

impl PartialEq<u8> for Measure[src]

impl PartialEq<usize> for Measure[src]

impl PartialOrd<Measure> for Measure[src]

impl PartialOrd<Measure> for Timecode[src]

impl PartialOrd<i16> for Measure[src]

impl PartialOrd<i32> for Measure[src]

impl PartialOrd<i64> for Measure[src]

impl PartialOrd<i8> for Measure[src]

impl PartialOrd<isize> for Measure[src]

impl PartialOrd<u16> for Measure[src]

impl PartialOrd<u32> for Measure[src]

impl PartialOrd<u64> for Measure[src]

impl PartialOrd<u8> for Measure[src]

impl PartialOrd<usize> for Measure[src]

impl StructuralEq for Measure[src]

impl Sub<(i16, i16)> for Measure[src]

type Output = Measure

The resulting type after applying the - operator.

impl Sub<(i32, i32)> for Measure[src]

type Output = Measure

The resulting type after applying the - operator.

impl Sub<(i64, i64)> for Measure[src]

type Output = Measure

The resulting type after applying the - operator.

impl Sub<(i8, i8)> for Measure[src]

type Output = Measure

The resulting type after applying the - operator.

impl Sub<(isize, isize)> for Measure[src]

type Output = Measure

The resulting type after applying the - operator.

impl Sub<(u16, u16)> for Measure[src]

type Output = Measure

The resulting type after applying the - operator.

impl Sub<(u32, u32)> for Measure[src]

type Output = Measure

The resulting type after applying the - operator.

impl Sub<(u64, u64)> for Measure[src]

type Output = Measure

The resulting type after applying the - operator.

impl Sub<(u8, u8)> for Measure[src]

type Output = Measure

The resulting type after applying the - operator.

impl Sub<(usize, usize)> for Measure[src]

type Output = Measure

The resulting type after applying the - operator.

impl Sub<Beat> for Measure[src]

type Output = CompoundDuration

The resulting type after applying the - operator.

impl Sub<Measure> for CompoundDuration[src]

type Output = CompoundDuration

The resulting type after applying the - operator.

impl Sub<Measure> for Beat[src]

type Output = CompoundDuration

The resulting type after applying the - operator.

impl Sub<Measure> for Measure[src]

type Output = Measure

The resulting type after applying the - operator.

impl Sub<i16> for Measure[src]

type Output = Measure

The resulting type after applying the - operator.

impl Sub<i32> for Measure[src]

type Output = Measure

The resulting type after applying the - operator.

impl Sub<i64> for Measure[src]

type Output = Measure

The resulting type after applying the - operator.

impl Sub<i8> for Measure[src]

type Output = Measure

The resulting type after applying the - operator.

impl Sub<isize> for Measure[src]

type Output = Measure

The resulting type after applying the - operator.

impl Sub<u16> for Measure[src]

type Output = Measure

The resulting type after applying the - operator.

impl Sub<u32> for Measure[src]

type Output = Measure

The resulting type after applying the - operator.

impl Sub<u64> for Measure[src]

type Output = Measure

The resulting type after applying the - operator.

impl Sub<u8> for Measure[src]

type Output = Measure

The resulting type after applying the - operator.

impl Sub<usize> for Measure[src]

type Output = Measure

The resulting type after applying the - operator.

impl SubAssign<(i16, i16)> for Measure[src]

impl SubAssign<(i32, i32)> for Measure[src]

impl SubAssign<(i64, i64)> for Measure[src]

impl SubAssign<(i8, i8)> for Measure[src]

impl SubAssign<(isize, isize)> for Measure[src]

impl SubAssign<(u16, u16)> for Measure[src]

impl SubAssign<(u32, u32)> for Measure[src]

impl SubAssign<(u64, u64)> for Measure[src]

impl SubAssign<(u8, u8)> for Measure[src]

impl SubAssign<(usize, usize)> for Measure[src]

impl SubAssign<Measure> for CompoundDuration[src]

impl SubAssign<Measure> for Measure[src]

impl SubAssign<i16> for Measure[src]

impl SubAssign<i32> for Measure[src]

impl SubAssign<i64> for Measure[src]

impl SubAssign<i8> for Measure[src]

impl SubAssign<isize> for Measure[src]

impl SubAssign<u16> for Measure[src]

impl SubAssign<u32> for Measure[src]

impl SubAssign<u64> for Measure[src]

impl SubAssign<u8> for Measure[src]

impl SubAssign<usize> for Measure[src]

Auto Trait Implementations

impl Send for Measure

impl Sync for Measure

impl Unpin for Measure

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T> ToString for T where
    T: Display + ?Sized
[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.