diff --git a/src/optimize.rs b/src/optimize.rs index f8b0d1bb..20ccfa3c 100644 --- a/src/optimize.rs +++ b/src/optimize.rs @@ -37,6 +37,10 @@ impl OptimizationLevel { pub fn is_none(self) -> bool { self == Self::None } + /// Is the `OptimizationLevel` Simple. + pub fn is_simple(self) -> bool { + self == Self::Simple + } /// Is the `OptimizationLevel` Full. pub fn is_full(self) -> bool { self == Self::Full