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

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

Shortcuts for loading drivers directly from the Driver enum.

Required methods

fn try_load(&self) -> Result<Arc<dyn PicoDriver + 'static>, DriverLoadError>[src]

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

Loading content...

Implementors

impl LoadDriverExt for Driver[src]

pub fn try_load(&self) -> Result<Arc<dyn PicoDriver + 'static>, DriverLoadError>[src]

pub fn try_load_with_resolution(
    &self,
    resolution: &Resolution
) -> Result<Arc<dyn PicoDriver + 'static>, DriverLoadError>
[src]

Loading content...