#[non_exhaustive]pub enum BuildError {
Show 13 variants
MissingRole {
role: String,
mapping_file: String,
},
MissingSvg {
path: String,
},
UnknownRole {
role: String,
mapping_file: String,
},
UnknownTheme {
theme: String,
},
MissingDefault {
role: String,
mapping_file: String,
},
DuplicateRole {
role: String,
file_a: String,
file_b: String,
},
Io {
message: String,
},
InvalidIdentifier {
name: String,
reason: String,
},
IdentifierCollision {
role_a: String,
role_b: String,
pascal: String,
},
ThemeOverlap {
theme: String,
},
DuplicateRoleInFile {
role: String,
file: String,
},
DuplicateTheme {
theme: String,
list: String,
},
InvalidIconName {
name: String,
role: String,
mapping_file: String,
},
}Expand description
Build-time error for icon code generation.
Each variant provides structured context for actionable error messages
suitable for cargo::error= output.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
MissingRole
A role declared in the master TOML is missing from a theme mapping file.
Fields
MissingSvg
An SVG file referenced by a bundled theme mapping does not exist.
UnknownRole
A role in a mapping file is not declared in the master TOML.
Fields
UnknownTheme
A theme name does not match any known IconSet variant.
MissingDefault
A DE-aware mapping value is missing the required default key.
Fields
DuplicateRole
A role name appears in multiple TOML files.
Fields
Io
A TOML or SVG file could not be read or parsed.
InvalidIdentifier
A role or enum name produces an invalid Rust identifier.
Fields
IdentifierCollision
Two different role names produce the same PascalCase enum variant.
Fields
ThemeOverlap
A theme name appears in both bundled_themes and system_themes.
DuplicateRoleInFile
A role name appears more than once in a single config file.
Fields
DuplicateTheme
A theme name appears more than once in the same list.
Fields
InvalidIconName
A mapping value contains characters that are invalid for an icon name.
Trait Implementations§
Source§impl Clone for BuildError
impl Clone for BuildError
Source§fn clone(&self) -> BuildError
fn clone(&self) -> BuildError
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl Debug for BuildError
impl Debug for BuildError
Source§impl Display for BuildError
impl Display for BuildError
Source§impl Error for BuildError
impl Error for BuildError
1.30.0 · Source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
1.0.0 · Source§fn description(&self) -> &str
fn description(&self) -> &str
use the Display impl or to_string()