Enum basalt::input::InputHookTarget
source · [−]#[non_exhaustive]
pub enum InputHookTarget {
None,
Window(Arc<dyn BasaltWindow>),
Bin(Arc<Bin>),
}
Expand description
The target of a hook.
Variants (Non-exhaustive)
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
None
Window(Arc<dyn BasaltWindow>)
Bin(Arc<Bin>)
Implementations
sourceimpl InputHookTarget
impl InputHookTarget
sourcepub fn into_window(self) -> Option<Arc<dyn BasaltWindow>>
pub fn into_window(self) -> Option<Arc<dyn BasaltWindow>>
Try to convert target into a <Arc<dyn BasaltWindow>
.
Trait Implementations
sourceimpl Clone for InputHookTarget
impl Clone for InputHookTarget
sourcefn clone(&self) -> InputHookTarget
fn clone(&self) -> InputHookTarget
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresourceimpl Debug for InputHookTarget
impl Debug for InputHookTarget
sourceimpl PartialEq<InputHookTarget> for InputHookTarget
impl PartialEq<InputHookTarget> for InputHookTarget
impl Eq for InputHookTarget
Auto Trait Implementations
impl !RefUnwindSafe for InputHookTarget
impl Send for InputHookTarget
impl Sync for InputHookTarget
impl Unpin for InputHookTarget
impl !UnwindSafe for InputHookTarget
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more