Trait usb_ids::FromId[][src]

pub trait FromId<T> {
    fn from_id(id: T) -> Option<&'static Self>;
}

A convenience trait for retrieving a top-level entity (like a Vendor) from the USB database by its unique ID.

Required methods

fn from_id(id: T) -> Option<&'static Self>[src]

Returns the entity corresponding to id, or None if none exists.

Loading content...

Implementors

impl FromId<u16> for Vendor[src]

Loading content...