[][src]Enum usfx::DutyCycle

pub enum DutyCycle {
    Eight,
    Quarter,
    Third,
    Half,
}

Possible values for the duty cycle of the square wave.

Variants

Eight

A duty cycle of 12.5%.

Quarter

A duty cycle of 25%.

Third

A duty cycle of 33%.

Half

A duty cycle of 50%.

Methods

impl DutyCycle[src]

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

Convert it to a number we can compare with.

Trait Implementations

impl Clone for DutyCycle[src]

impl Copy for DutyCycle[src]

impl Debug for DutyCycle[src]

impl Default for DutyCycle[src]

fn default() -> Self[src]

The default cycle is half.

impl Eq for DutyCycle[src]

impl Hash for DutyCycle[src]

impl PartialEq<DutyCycle> for DutyCycle[src]

impl StructuralEq for DutyCycle[src]

impl StructuralPartialEq for DutyCycle[src]

Auto Trait Implementations

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, 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.