pub struct Backends { /* private fields */ }Expand description
Global store for window backends.
Implementations§
Source§impl Backends
impl Backends
Sourcepub fn iter<'a>() -> impl Iterator<Item = RefMulti<'a, u32, WindowBackend>>
pub fn iter<'a>() -> impl Iterator<Item = RefMulti<'a, u32, WindowBackend>>
Iterate over all window backends.
Sourcepub fn with_backend<R>(
id: u32,
f: impl FnOnce(&WindowBackend) -> R,
) -> Option<R>
pub fn with_backend<R>( id: u32, f: impl FnOnce(&WindowBackend) -> R, ) -> Option<R>
Run closure with the specified backend, if it exists.
Sourcepub fn cleanup_backends()
pub fn cleanup_backends()
Reset backend states for all windows.
Auto Trait Implementations§
impl Freeze for Backends
impl !RefUnwindSafe for Backends
impl Send for Backends
impl Sync for Backends
impl Unpin for Backends
impl !UnwindSafe for Backends
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