pub struct Instance;Expand description
An instance of the GLFW context, of which there should only ever be at most one of.
Implementations§
source§impl Instance
impl Instance
sourcepub fn poll_events(&self)
pub fn poll_events(&self)
Polls the Instance for events.
This calls glfwPollEvents implicitly
sourcepub fn vulkan_supported(&self) -> bool
pub fn vulkan_supported(&self) -> bool
Queries whether this Instance supports the Vulkan API.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Instance
impl RefUnwindSafe for Instance
impl Send for Instance
impl Sync for Instance
impl Unpin for Instance
impl UnwindSafe for Instance
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