pub struct Root { /* private fields */ }Expand description
The root of a Rust app: makes the app’s top component (on the engine
thread, where elements live). The engine mounts it as the content of the
surface (nsh_engine::App::Rust).
Implementations§
Source§impl Root
impl Root
Sourcepub fn new<C>(
props: impl Fn() -> <C as Component>::Props + Send + Sync + 'static,
) -> Rootwhere
C: Component,
pub fn new<C>(
props: impl Fn() -> <C as Component>::Props + Send + Sync + 'static,
) -> Rootwhere
C: Component,
Component C with the props props makes.
Trait Implementations§
Auto Trait Implementations§
impl !RefUnwindSafe for Root
impl !UnwindSafe for Root
impl Freeze for Root
impl Send for Root
impl Sync for Root
impl Unpin for Root
impl UnsafeUnpin for Root
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