[][src]Struct pstoedit::driver_info::DriverInfo

pub struct DriverInfo(_);

Information on pstoedit drivers.

See module-level documentation for more details.

Implementations

impl DriverInfo[src]

pub fn get() -> Result<Self>[src]

Inquire driver information.

Examples

pstoedit::init().unwrap();
let drivers = pstoedit::DriverInfo::get().unwrap();
let names = drivers
    .iter()
    .map(|driver| driver.symbolic_name().unwrap())
    .collect::<Vec<_>>();

Errors

NotInitialized if init was not called successfully.

pub fn get_native() -> Result<Self>[src]

Inquire native driver information.

See get for usage.

pub fn iter(&self) -> Iter[src]

Generate iterator over drivers in driver information.

Examples

See get.

Trait Implementations

impl Drop for DriverInfo[src]

impl<'a> IntoIterator for &'a DriverInfo[src]

type Item = DriverDescription<'a>

The type of the elements being iterated over.

type IntoIter = Iter<'a>

Which kind of iterator are we turning this into?

Auto Trait Implementations

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.