Settings

Trait Settings 

Source
pub trait Settings {
    type Variant: Clone;

    // Required methods
    fn set_value(&mut self, value: Self::Variant);
    fn to_variant(name: &str, value: Value) -> Result<Self::Variant>;
}
Expand description

Settings manager.

Required Associated Types§

Source

type Variant: Clone

The variant enum representing the setting setters.

Required Methods§

Source

fn set_value(&mut self, value: Self::Variant)

Set a setting value from its variant.

Source

fn to_variant(name: &str, value: Value) -> Result<Self::Variant>

Convert a name and value to a variant.

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.

Implementors§