pub struct Adapter { /* private fields */ }
Implementations§
Source§impl Adapter
impl Adapter
pub fn new( window: &Window, source: impl 'static + ActivationHandler + Send, ) -> Self
pub fn with_action_handler( window: &Window, source: impl 'static + ActivationHandler + Send, action_handler: impl 'static + ActionHandler + Send, ) -> Self
pub fn on_event(&self, window: &mut Window, event: &Event) -> bool
pub fn update_if_active(&mut self, updater: impl FnOnce() -> TreeUpdate)
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Adapter
impl !RefUnwindSafe for Adapter
impl !Send for Adapter
impl !Sync for Adapter
impl Unpin for Adapter
impl !UnwindSafe for Adapter
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