pub struct ModalScope { /* private fields */ }Expand description
A Dialog or a Sheet and its builder: open seeds the Renderer’s own open state,
and on_dismiss says once that the user asked to close it.
Implementations§
Source§impl ModalScope
impl ModalScope
pub fn on_dismiss(self, handler: impl FnMut() + 'static) -> Self
Source§impl ModalScope
impl ModalScope
Trait Implementations§
Source§impl Drop for ModalScope
impl Drop for ModalScope
Auto Trait Implementations§
impl !RefUnwindSafe for ModalScope
impl !Send for ModalScope
impl !Sync for ModalScope
impl !UnwindSafe for ModalScope
impl Freeze for ModalScope
impl Unpin for ModalScope
impl UnsafeUnpin for ModalScope
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