mirror of
https://codeberg.org/Fl1tzi/microdeck.git
synced 2024-05-19 19:20:20 +00:00
12 lines
267 B
Rust
12 lines
267 B
Rust
// various functions useful for internal parsing or other things
|
|
|
|
/// Error for any kind of parsing
|
|
pub enum ParseError {
|
|
/// Generic error -> something is wrong
|
|
UnexpectedValue
|
|
}
|
|
|
|
pub fn hex_to_rgb(hex: String) -> Result<image::Rgb<u8>, ParseError> {
|
|
|
|
}
|