IsSettings

Trait IsSettings 

Source
pub trait IsSettings {
    // Required methods
    fn pick<S, T>(&self, name: S) -> Option<Setting<'_, T>>
       where S: Into<Vec<u8>>,
             T: IsSetting + ?Sized;
    fn str_<S>(&self, name: S) -> Option<Setting<'_, str>>
       where S: Into<Vec<u8>>;
    fn num<S>(&self, name: S) -> Option<Setting<'_, f64>>
       where S: Into<Vec<u8>>;
    fn int<S>(&self, name: S) -> Option<Setting<'_, i32>>
       where S: Into<Vec<u8>>;
}
Expand description

The settings interface

Required Methods§

Source

fn pick<S, T>(&self, name: S) -> Option<Setting<'_, T>>
where S: Into<Vec<u8>>, T: IsSetting + ?Sized,

Source

fn str_<S>(&self, name: S) -> Option<Setting<'_, str>>
where S: Into<Vec<u8>>,

Source

fn num<S>(&self, name: S) -> Option<Setting<'_, f64>>
where S: Into<Vec<u8>>,

Source

fn int<S>(&self, name: S) -> Option<Setting<'_, i32>>
where S: Into<Vec<u8>>,

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§

Source§

impl<X> IsSettings for X
where X: HasHandle<Handle = fluid_settings_t>,