pub struct Node<U: Ui> { /* private fields */ }Implementations§
Source§impl<U: Ui> Node<U>
impl<U: Ui> Node<U>
pub fn new<W: Widget<U>>( widget: RwData<dyn Widget<U>>, area: U::Area, checker: impl Fn() -> bool + 'static, ) -> Self
pub fn widget(&self) -> &RwData<dyn Widget<U>>
Sourcepub fn try_downcast<W>(&self) -> Option<RwData<W>>
pub fn try_downcast<W>(&self) -> Option<RwData<W>>
Returns the downcast ref of this Widget.
pub fn data_is<W: 'static>(&self) -> bool
pub fn update_and_print(&self)
pub fn inspect_as<W: 'static, B>(&self, f: impl FnOnce(&W) -> B) -> Option<B>
pub fn ptr_eq<W, D>(&self, other: &D) -> bool
pub fn needs_update(&self) -> bool
Trait Implementations§
impl<U: Ui> Send for Node<U>
impl<U: Ui> Sync for Node<U>
Auto Trait Implementations§
impl<U> !Freeze for Node<U>
impl<U> !RefUnwindSafe for Node<U>
impl<U> Unpin for Node<U>
impl<U> !UnwindSafe for Node<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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit)