Struct dioxus_mobile::wry::application::window::WindowId [−]
pub struct WindowId(_);
Expand description
Identifier of a window. Unique for each window.
Can be obtained with window.id()
.
Whenever you receive an event specific to a window, this event contains a WindowId
which you
can then compare to the ids of your windows.
Implementations
impl WindowId
impl WindowId
Safety
Returns a dummy WindowId
, useful for unit testing. The only guarantee made about the return
value of this function is that it will always be equal to itself and to future values returned
by this function. No other guarantees are made. This may be equal to a real WindowId
.
Passing this into a tao function will result in undefined behavior.
Trait Implementations
impl PartialOrd<WindowId> for WindowId
impl PartialOrd<WindowId> for WindowId
pub fn partial_cmp(&self, other: &WindowId) -> Option<Ordering>
pub fn partial_cmp(&self, other: &WindowId) -> Option<Ordering>
This method returns an ordering between self
and other
values if one exists. Read more
This method tests less than (for self
and other
) and is used by the <
operator. Read more
This method tests less than or equal to (for self
and other
) and is used by the <=
operator. Read more
This method tests greater than (for self
and other
) and is used by the >
operator. Read more
impl StructuralEq for WindowId
impl StructuralPartialEq for WindowId
Auto Trait Implementations
impl RefUnwindSafe for WindowId
impl UnwindSafe for WindowId
Blanket Implementations
Mutably borrows from an owned value. Read more
Compare self to key
and return true
if they are equal.