pub trait Application: Sized {
type CallbackIds: Debug + Into<CallbackId> + TryFrom<CallbackId> + Deref<Target = Callback<Self>>;
type AxisControls: Id<Axis> = Nil;
type ButtonControls: Id<Button> = Nil;
type MotionControls: Id<Motion> = Nil;
type PointerControls: Id<Pointer> = Nil;
type SystemControls: Id<System> = Nil;
type TextControls: Id<Text> = Nil;
type WheelControls: Id<Wheel> = Nil;
}
Expand description
Implements a type context of application callbacks and control callbacks
Required Associated Types§
type CallbackIds: Debug + Into<CallbackId> + TryFrom<CallbackId> + Deref<Target = Callback<Self>>
Provided Associated Types§
type AxisControls: Id<Axis> = Nil
type ButtonControls: Id<Button> = Nil
type MotionControls: Id<Motion> = Nil
type PointerControls: Id<Pointer> = Nil
type SystemControls: Id<System> = Nil
type TextControls: Id<Text> = Nil
type WheelControls: Id<Wheel> = Nil
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.