pub struct Root<T> { /* private fields */ }
Expand description
The central state of a Nuit application.
Implementations§
Source§impl<T> Root<T>where
T: View,
impl<T> Root<T>where
T: View,
pub fn render(&self) -> Node
pub fn render_json(&self) -> String
pub fn fire_event_json(&self, id_path_json: &str, event_json: &str)
pub fn fire_event(&self, id_path: &IdPath, event: &Event)
pub fn set_update_callback(&self, update_callback: impl Fn(&Update) + 'static)
Auto Trait Implementations§
impl<T> !Freeze for Root<T>
impl<T> !RefUnwindSafe for Root<T>
impl<T> !Send for Root<T>
impl<T> !Sync for Root<T>
impl<T> Unpin for Root<T>where
T: Unpin,
impl<T> !UnwindSafe for Root<T>
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