Trait Id

Source
pub trait Id<C: Control>:
    Clone
    + Eq
    + PartialEq
    + Into<Fun<C::Payload>>
    + Into<C>
    + TryFrom<C, Error = C>
    + Debug
    + Serialize
    + DeserializeOwned { }
Expand description

A type of serializable names that map to control callbacks.

A type implementing Id is convertible with the C:Control type and maps to a control Fun taking the payload specified by the Control type.

This is the serializable type representing a control callback Fun used for saving and loading bindings.

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 Id<Axis> for gooey::interface::controller::controls::axis::Builtin

Source§

impl Id<Axis> for Nil

Source§

impl Id<Button> for gooey::interface::controller::controls::button::Builtin

Source§

impl Id<Button> for Nil

Source§

impl Id<Motion> for Nil

Source§

impl Id<Motion> for gooey::interface::controller::controls::motion::Builtin

Source§

impl Id<Pointer> for Nil

Source§

impl Id<Pointer> for gooey::interface::controller::controls::pointer::Builtin

Source§

impl Id<System> for Nil

Source§

impl Id<System> for gooey::interface::controller::controls::system::Builtin

Source§

impl Id<Text> for Nil

Source§

impl Id<Text> for gooey::interface::controller::controls::text::Builtin

Source§

impl Id<Wheel> for Nil

Source§

impl Id<Wheel> for gooey::interface::controller::controls::wheel::Builtin