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 8c4a25c commit c12f84cCopy full SHA for c12f84c
crates/cargo-util-schemas/src/manifest/mod.rs
@@ -352,6 +352,13 @@ impl<T> InheritableField<T> {
352
}
353
354
355
+ pub fn into_value(self) -> Option<T> {
356
+ match self {
357
+ Self::Inherit(_) => None,
358
+ Self::Value(defined) => Some(defined),
359
+ }
360
361
+
362
pub fn is_inherited(&self) -> bool {
363
matches!(self, Self::Inherit(_))
364
0 commit comments