Struct mccs_db::Database 
                   
                       [−]
                   
               [src]
pub struct Database { /* fields omitted */ }Describes all the VCP feature codes supported by an MCCS specification or display.
Methods
impl Database[src]
pub fn from_version(mccs_version: &Version) -> Self[src]
Create a new database from a specified MCCS specification version.
pub fn from_database<R: Read>(
    database_yaml: R, 
    mccs_version: &Version
) -> Result<Self>[src]
database_yaml: R,
mccs_version: &Version
) -> Result<Self>
Create a new database from a specified database description YAML file.
This format is not (yet) documented, but an example exists that describes the MCCS spec.
pub fn apply_capabilities(&mut self, caps: &Capabilities)[src]
Filter out any feature codes or values that are not supported by the specified display.
pub fn get(&self, code: FeatureCode) -> Option<&Descriptor>[src]
Get the description of a given VCP feature code.
Trait Implementations
impl Debug for Database[src]
fn fmt(&self, __arg_0: &mut Formatter) -> Result[src]
Formats the value using the given formatter. Read more
impl Clone for Database[src]
fn clone(&self) -> Database[src]
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)1.0.0[src]
Performs copy-assignment from source. Read more