#[non_exhaustive]pub struct InputHook<'a, A: Stores> {
pub session: &'a Session<A>,
pub input: &'a Input,
pub ui: Option<&'a Context>,
pub size: (u32, u32),
pub sender: &'a CommandSender<A>,
}Expand description
Runs before the frame boundary with read-only session input.
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Non-exhaustive structs could have additional fields added in future. Therefore, non-exhaustive structs cannot be constructed in external crates using the traditional
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.session: &'a Session<A>§input: &'a Input§ui: Option<&'a Context>§size: (u32, u32)§sender: &'a CommandSender<A>Auto Trait Implementations§
impl<'a, A> Freeze for InputHook<'a, A>
impl<'a, A> !RefUnwindSafe for InputHook<'a, A>
impl<'a, A> !Send for InputHook<'a, A>
impl<'a, A> !Sync for InputHook<'a, A>
impl<'a, A> Unpin for InputHook<'a, A>
impl<'a, A> UnsafeUnpin for InputHook<'a, A>
impl<'a, A> !UnwindSafe for InputHook<'a, A>
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
§impl<T> Downcast for Twhere
T: Any,
impl<T> Downcast for Twhere
T: Any,
§fn into_any(self: Box<T>) -> Box<dyn Any>
fn into_any(self: Box<T>) -> Box<dyn Any>
Convert
Box<dyn Trait> (where Trait: Downcast) to Box<dyn Any>. Box<dyn Any> can
then be further downcast into Box<ConcreteType> where ConcreteType implements Trait.§fn into_any_rc(self: Rc<T>) -> Rc<dyn Any>
fn into_any_rc(self: Rc<T>) -> Rc<dyn Any>
Convert
Rc<Trait> (where Trait: Downcast) to Rc<Any>. Rc<Any> can then be
further downcast into Rc<ConcreteType> where ConcreteType implements Trait.§fn as_any(&self) -> &(dyn Any + 'static)
fn as_any(&self) -> &(dyn Any + 'static)
Convert
&Trait (where Trait: Downcast) to &Any. This is needed since Rust cannot
generate &Any’s vtable from &Trait’s.§fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
Convert
&mut Trait (where Trait: Downcast) to &Any. This is needed since Rust cannot
generate &mut Any’s vtable from &mut Trait’s.