add is_inherited method to InheritableField

This commit is contained in:
2ndDerivative 2025-08-12 17:04:54 +02:00
parent e58ab62a09
commit 6d3ff14969
No known key found for this signature in database
GPG Key ID: 917F676F6855C36A

View File

@ -351,6 +351,10 @@ impl<T> InheritableField<T> {
InheritableField::Value(defined) => Some(defined),
}
}
pub fn is_inherited(&self) -> bool {
matches!(self, Self::Inherit(_))
}
}
//. This already has a `Deserialize` impl from version_trim_whitespace