#[repr(u32)]pub enum WindowAction {
Open = 0,
Close = 1,
}Expand description
What code asks of a window. repr(u32) because compiled apps pass it to the runtime,
which every platform’s C calling convention passes without widening.
Variants§
Open = 0
Opens the window, or brings it to the front if it is open.
Close = 1
Closes the window, if it is open.
Trait Implementations§
Source§impl Clone for WindowAction
impl Clone for WindowAction
Source§fn clone(&self) -> WindowAction
fn clone(&self) -> WindowAction
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 WindowAction
Source§impl Debug for WindowAction
impl Debug for WindowAction
impl Eq for WindowAction
Source§impl PartialEq for WindowAction
impl PartialEq for WindowAction
impl StructuralPartialEq for WindowAction
Auto Trait Implementations§
impl Freeze for WindowAction
impl RefUnwindSafe for WindowAction
impl Send for WindowAction
impl Sync for WindowAction
impl Unpin for WindowAction
impl UnsafeUnpin for WindowAction
impl UnwindSafe for WindowAction
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