Struct softbuffer::Context
source · pub struct Context<D> { /* private fields */ }
Expand description
An instance of this struct contains the platform-specific data that must be managed in order to write to a window on that platform.
Implementations§
source§impl<D: HasDisplayHandle> Context<D>
impl<D: HasDisplayHandle> Context<D>
sourcepub fn new(display: D) -> Result<Self, SoftBufferError>
pub fn new(display: D) -> Result<Self, SoftBufferError>
Creates a new instance of this struct, using the provided display.
Auto Trait Implementations§
impl<D> Freeze for Context<D>where
D: Freeze,
impl<D> RefUnwindSafe for Context<D>where
D: RefUnwindSafe,
impl<D> !Send for Context<D>
impl<D> !Sync for Context<D>
impl<D> Unpin for Context<D>where
D: Unpin,
impl<D> UnwindSafe for Context<D>where
D: UnwindSafe,
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