Add OptimizationLevel::is_simple

This commit is contained in:
Stephen Chung 2020-05-31 12:36:31 +08:00
parent c9de37e8d1
commit 13c49387ef

View File

@ -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