Trait tuna::AsTuneable [−][src]
pub trait AsTuneable: Any + Clone + Sized { type Result; fn make_tuneable(&self) -> Tuneable; fn update(tuneable: &mut Tuneable, var: Self::Result); fn reset(tuneable: &mut Tuneable); fn from_tuneable(v: &Tuneable) -> Option<Self::Result>; }
Expand description
Implemented by types that can be used to make tuneables; i.e., manipulated state with various constraints
Associated Types
Required methods
fn make_tuneable(&self) -> Tuneable
[src]
fn update(tuneable: &mut Tuneable, var: Self::Result)
[src]
fn reset(tuneable: &mut Tuneable)
[src]
fn from_tuneable(v: &Tuneable) -> Option<Self::Result>
[src]
Implementors
impl AsTuneable for Boolean
[src]
impl AsTuneable for Boolean
[src]impl AsTuneable for Float32
[src]
impl AsTuneable for Float32
[src]impl AsTuneable for Float64
[src]
impl AsTuneable for Float64
[src]impl AsTuneable for Int32
[src]
impl AsTuneable for Int32
[src]