Add OptimizationLevel::is_simple
This commit is contained in:
parent
c9de37e8d1
commit
13c49387ef
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user