INNER CODE UNIT · Rust
is_boolean_field
jhspetersson/fselect · src/field/mod.rs:114
pub fn is_boolean_field(&self) -> bool {
match self {
$(
$(#[$variant_attrs])*
$enum_name::$variant => {
stringify!($($data_type)?) .replace("\"", "") == "boolean"
}
)*
}
}
pub fn is_colorized_field(&self) -> bool {
match self {
$(
$(#[$variant_attrs])*
$enum_name::$variant => {
stringify!($($colorized)?) == "true"
}