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

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

Required methods

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

Implementors