Function droom_ui::led::load [] [src]

pub fn load<P: AsRef<Path>>(path: P) -> Result<(), String>

Compiles a LED specification from a file.

Each time the function loads a LED file, the elements contained in it are created. Therefore, the same LED file cannot be loaded several times, otherwise the elements will also be created several times.

In case of failure returns the compilation error message.