Struct ggbasm::audio::Channel1State

source ·
pub struct Channel1State {
Show 13 fields pub note: Note, pub sharp: bool, pub octave: u8, pub duty: u8, pub length: u8, pub envelope_initial_volume: u8, pub envelope_argument: u8, pub envelope_increase: bool, pub enable_length: bool, pub initial: bool, pub sweep_time: u8, pub sweep_increase: bool, pub sweep_number: u8,
}
Expand description

Represents the state of channel 1

Fields§

§note: Note§sharp: bool§octave: u8§duty: u8§length: u8§envelope_initial_volume: u8§envelope_argument: u8§envelope_increase: bool§enable_length: bool§initial: bool§sweep_time: u8§sweep_increase: bool§sweep_number: u8

Auto Trait Implementations§

Blanket Implementations§

Gets the TypeId of self. Read more
Immutably borrows from an owned value. Read more
Mutably borrows from an owned value. Read more

Returns the argument unchanged.

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

The alignment of pointer.
The type for initializers.
Initializes a with the given initializer. Read more
Dereferences the given pointer. Read more
Mutably dereferences the given pointer. Read more
Drops the object pointed to by the given pointer. Read more
Sets value as a parameter of self.
The type returned in the event of a conversion error.
Performs the conversion.
The type returned in the event of a conversion error.
Performs the conversion.