[][src]Trait pico_sdk::driver::LoadDriverExt

pub trait LoadDriverExt {
    fn try_load(
        &self
    ) -> Result<Arc<Box<dyn PicoDriver + 'static, Global>>, DriverLoadError>;
fn try_load_with_resolution(
        &self,
        resolution: &Resolution
    ) -> Result<Arc<Box<dyn PicoDriver + 'static, Global>>, DriverLoadError>; }

Shortcuts for loading drivers directly from the Driver enum.

Required methods

fn try_load(
    &self
) -> Result<Arc<Box<dyn PicoDriver + 'static, Global>>, DriverLoadError>

fn try_load_with_resolution(
    &self,
    resolution: &Resolution
) -> Result<Arc<Box<dyn PicoDriver + 'static, Global>>, DriverLoadError>

Loading content...

Implementors

impl LoadDriverExt for Driver[src]

Loading content...