pub struct CurWidget<U: Ui>(/* private fields */);Implementations§
Source§impl<U: Ui> CurWidget<U>
impl<U: Ui> CurWidget<U>
pub const fn new() -> Self
pub fn type_id(&self) -> TypeId
pub fn inspect<R>( &self, f: impl FnOnce(&dyn Widget<U>, &U::Area, &Cursors) -> R, ) -> R
pub fn inspect_widget_as<W, R>(
&self,
f: impl FnOnce(&W, &U::Area, &Cursors) -> R,
) -> Option<R>where
W: Widget<U>,
pub fn inspect_as<W: Widget<U>, R>( &self, f: impl FnOnce(&W, &U::Area, &Cursors) -> R, ) -> Option<R>
Trait Implementations§
Auto Trait Implementations§
impl<U> !Freeze for CurWidget<U>
impl<U> !RefUnwindSafe for CurWidget<U>
impl<U> Send for CurWidget<U>
impl<U> Sync for CurWidget<U>
impl<U> Unpin for CurWidget<U>
impl<U> !UnwindSafe for CurWidget<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