pub struct Driver<P> where
P: SharedPointerKind, {
pub device: SharedPointer<Device<P>, P>,
pub swapchain: Swapchain<P>,
}Fields
device: SharedPointer<Device<P>, P>swapchain: Swapchain<P>Implementations
sourceimpl<P> Driver<P> where
P: SharedPointerKind,
impl<P> Driver<P> where
P: SharedPointerKind,
pub fn new(
window: &impl HasRawWindowHandle,
cfg: DriverConfig,
width: u32,
height: u32
) -> Result<Self, DriverError>
Trait Implementations
Auto Trait Implementations
impl<P> !RefUnwindSafe for Driver<P>
impl<P> Send for Driver<P> where
P: Send,
impl<P> Sync for Driver<P> where
P: Send + Sync,
impl<P> Unpin for Driver<P> where
P: Unpin,
impl<P> !UnwindSafe for Driver<P>
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more