Struct goxlr_profile_loader::components::pitch::PitchEncoderBase
source · [−]pub struct PitchEncoderBase { /* private fields */ }
Expand description
This is relatively static, main tag contains standard colour mapping, subtags contain various presets, we’ll use an EnumMap to define the ‘presets’ as they’ll be useful for the other various ‘types’ of presets (encoders and effects).
Implementations
sourceimpl PitchEncoderBase
impl PitchEncoderBase
pub fn new(element_name: String) -> Self
pub fn parse_pitch_root(
&mut self,
attributes: &[OwnedAttribute]
) -> Result<(), ParseError>
pub fn parse_pitch_preset(
&mut self,
id: u8,
attributes: &[OwnedAttribute]
) -> Result<(), ParseError>
pub fn write_pitch<W: Write>(
&self,
writer: &mut EventWriter<&mut W>
) -> Result<(), Error>
pub fn colour_map(&self) -> &ColourMap
pub fn colour_map_mut(&mut self) -> &mut ColourMap
pub fn get_preset(&self, preset: Preset) -> &PitchEncoder
pub fn get_preset_mut(&mut self, preset: Preset) -> &mut PitchEncoder
Trait Implementations
Auto Trait Implementations
impl RefUnwindSafe for PitchEncoderBase
impl Send for PitchEncoderBase
impl Sync for PitchEncoderBase
impl Unpin for PitchEncoderBase
impl UnwindSafe for PitchEncoderBase
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more