pub enum ModalPresentation {
Auto,
InTree,
NativeWindow,
}Expand description
How the framework should present a modal surface.
Variants§
Auto
Let the framework pick the most appropriate backend for the runtime.
InTree
Present inside the current widget tree using the overlay system.
NativeWindow
Present in a separate native OS window.
Trait Implementations§
Source§impl Clone for ModalPresentation
impl Clone for ModalPresentation
Source§fn clone(&self) -> ModalPresentation
fn clone(&self) -> ModalPresentation
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Copy for ModalPresentation
Source§impl Debug for ModalPresentation
impl Debug for ModalPresentation
Source§impl Default for ModalPresentation
impl Default for ModalPresentation
Source§fn default() -> ModalPresentation
fn default() -> ModalPresentation
Returns the “default value” for a type. Read more
impl Eq for ModalPresentation
Source§impl PartialEq for ModalPresentation
impl PartialEq for ModalPresentation
impl StructuralPartialEq for ModalPresentation
Auto Trait Implementations§
impl Freeze for ModalPresentation
impl RefUnwindSafe for ModalPresentation
impl Send for ModalPresentation
impl Sync for ModalPresentation
impl Unpin for ModalPresentation
impl UnsafeUnpin for ModalPresentation
impl UnwindSafe for ModalPresentation
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