Struct wgpu::rwh::OrbitalWindowHandle
#[non_exhaustive]pub struct OrbitalWindowHandle {
pub window: NonNull<c_void>,
}
Expand description
Raw window handle for the Redox operating system.
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Non-exhaustive structs could have additional fields added in future. Therefore, non-exhaustive structs cannot be constructed in external crates using the traditional
Struct { .. }
syntax; cannot be matched against without a wildcard ..
; and struct update syntax will not work.window: NonNull<c_void>
A pointer to an orbclient window.
Implementations§
§impl OrbitalWindowHandle
impl OrbitalWindowHandle
pub fn new(window: NonNull<c_void>) -> OrbitalWindowHandle
pub fn new(window: NonNull<c_void>) -> OrbitalWindowHandle
Create a new handle to a window.
Example
let window: NonNull<Window>;
let mut handle = OrbitalWindowHandle::new(window.cast());
Trait Implementations§
§impl Clone for OrbitalWindowHandle
impl Clone for OrbitalWindowHandle
§fn clone(&self) -> OrbitalWindowHandle
fn clone(&self) -> OrbitalWindowHandle
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read more§impl Debug for OrbitalWindowHandle
impl Debug for OrbitalWindowHandle
§impl From<OrbitalWindowHandle> for RawWindowHandle
impl From<OrbitalWindowHandle> for RawWindowHandle
§fn from(value: OrbitalWindowHandle) -> RawWindowHandle
fn from(value: OrbitalWindowHandle) -> RawWindowHandle
Converts to this type from the input type.
§impl Hash for OrbitalWindowHandle
impl Hash for OrbitalWindowHandle
§impl PartialEq for OrbitalWindowHandle
impl PartialEq for OrbitalWindowHandle
§fn eq(&self, other: &OrbitalWindowHandle) -> bool
fn eq(&self, other: &OrbitalWindowHandle) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.impl Copy for OrbitalWindowHandle
impl Eq for OrbitalWindowHandle
impl StructuralEq for OrbitalWindowHandle
impl StructuralPartialEq for OrbitalWindowHandle
Auto Trait Implementations§
impl RefUnwindSafe for OrbitalWindowHandle
impl !Send for OrbitalWindowHandle
impl !Sync for OrbitalWindowHandle
impl Unpin for OrbitalWindowHandle
impl UnwindSafe for OrbitalWindowHandle
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
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Checks if this value is equivalent to the given key. Read more
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key
and return true
if they are equal.