Skip to main content

ParamText

Trait ParamText 

Source
pub trait ParamText {
    // Required methods
    fn text_to_value(&mut self, id: u32, text: &str) -> Option<f64>;
    fn value_to_text(&mut self, id: u32, value: f64) -> Option<String>;
}
Expand description

Hooks into a plugin’s own text conversion.

Required Methods§

Source

fn text_to_value(&mut self, id: u32, text: &str) -> Option<f64>

Source

fn value_to_text(&mut self, id: u32, value: f64) -> Option<String>

Dyn Compatibility§

This trait is dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementors§