We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent e58ab62 commit 6d3ff14Copy full SHA for 6d3ff14
crates/cargo-util-schemas/src/manifest/mod.rs
@@ -351,6 +351,10 @@ impl<T> InheritableField<T> {
351
InheritableField::Value(defined) => Some(defined),
352
}
353
354
+
355
+ pub fn is_inherited(&self) -> bool {
356
+ matches!(self, Self::Inherit(_))
357
+ }
358
359
360
//. This already has a `Deserialize` impl from version_trim_whitespace
0 commit comments