transform_yaml

Function transform_yaml 

Source
pub fn transform_yaml(source: &str, driver_name: &str) -> String
Expand description

Transform the yaml string to the generated device driver (or a compile error).

The driver_name arg is used to name the root block of the driver. It should be given in PascalCase form.