Skip to main content

HblankControlAdapter

Trait HblankControlAdapter 

Source
pub trait HblankControlAdapter<T> {
    type Value: ControlField;

    // Required methods
    fn to_control(value: &T) -> Self::Value;
    fn apply_control(value: &mut T, control: Self::Value);
}
Expand description

Maps a project domain type onto one of Hblank’s built-in control value types.

The adapter keeps domain conversion in project code while Hblank owns editor UI, validation, reset behavior, and session serialization.

Required Associated Types§

Source

type Value: ControlField

Required Methods§

Source

fn to_control(value: &T) -> Self::Value

Source

fn apply_control(value: &mut T, control: Self::Value)

Dyn Compatibility§

This trait is not dyn compatible.

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

Implementors§