Struct raw_window_handle::DisplayHandle
source · pub struct DisplayHandle<'a> { /* private fields */ }
Expand description
The handle to the display controller of the windowing system.
This is the primary return type of the HasDisplayHandle
trait. It is guaranteed to contain
a valid platform-specific display handle for its lifetime.
Get the underlying raw display handle with the HasRawDisplayHandle
trait.
Implementations§
source§impl<'a> DisplayHandle<'a>
impl<'a> DisplayHandle<'a>
sourcepub unsafe fn borrow_raw(raw: RawDisplayHandle) -> Self
pub unsafe fn borrow_raw(raw: RawDisplayHandle) -> Self
Create a DisplayHandle
from a RawDisplayHandle
.
Safety
The RawDisplayHandle
must be valid for the lifetime.
Trait Implementations§
source§impl<'a> Clone for DisplayHandle<'a>
impl<'a> Clone for DisplayHandle<'a>
source§impl Debug for DisplayHandle<'_>
impl Debug for DisplayHandle<'_>
source§impl<'a> HasDisplayHandle for DisplayHandle<'a>
impl<'a> HasDisplayHandle for DisplayHandle<'a>
source§fn display_handle(&self) -> Result<DisplayHandle<'_>, HandleError>
fn display_handle(&self) -> Result<DisplayHandle<'_>, HandleError>
Get a handle to the display controller of the windowing system.
source§impl HasRawDisplayHandle for DisplayHandle<'_>
impl HasRawDisplayHandle for DisplayHandle<'_>
fn raw_display_handle(&self) -> RawDisplayHandle
source§impl<'a> Hash for DisplayHandle<'a>
impl<'a> Hash for DisplayHandle<'a>
source§impl<'a> PartialEq for DisplayHandle<'a>
impl<'a> PartialEq for DisplayHandle<'a>
source§fn eq(&self, other: &DisplayHandle<'a>) -> bool
fn eq(&self, other: &DisplayHandle<'a>) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.impl<'a> Eq for DisplayHandle<'a>
impl<'a> StructuralEq for DisplayHandle<'a>
impl<'a> StructuralPartialEq for DisplayHandle<'a>
Auto Trait Implementations§
impl<'a> RefUnwindSafe for DisplayHandle<'a>
impl<'a> !Send for DisplayHandle<'a>
impl<'a> !Sync for DisplayHandle<'a>
impl<'a> Unpin for DisplayHandle<'a>
impl<'a> UnwindSafe for DisplayHandle<'a>
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