Struct duat_core::data::CurrentWidget
source · pub struct CurrentWidget<U>where
U: Ui,{ /* private fields */ }Implementations§
source§impl<U> CurrentWidget<U>where
U: Ui,
impl<U> CurrentWidget<U>where
U: Ui,
pub const fn new() -> Self
pub fn type_name_is(&self, name: &'static str) -> bool
pub fn inspect<R>( &self, f: impl FnOnce(&dyn ActiveWidget<U>, &U::Area, &dyn InputMethod<U>) -> R, ) -> R
pub fn inspect_widget_as<W, R>(
&self,
f: impl FnOnce(&W, &U::Area, &dyn InputMethod<U>) -> R,
) -> Option<R>where
W: ActiveWidget<U>,
pub fn inspect_as<W, I, R>(
&self,
f: impl FnOnce(&W, &U::Area, &dyn InputMethod<U>) -> R,
) -> Option<R>where
W: ActiveWidget<U>,
I: InputMethod<U>,
pub fn widget_ptr_eq(&self, other: &Widget<U>) -> bool
Trait Implementations§
Auto Trait Implementations§
impl<U> !Freeze for CurrentWidget<U>
impl<U> !RefUnwindSafe for CurrentWidget<U>
impl<U> Send for CurrentWidget<U>
impl<U> Sync for CurrentWidget<U>
impl<U> Unpin for CurrentWidget<U>
impl<U> !UnwindSafe for CurrentWidget<U>
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