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 {
|
pub fn is_none(self) -> bool {
|
||||||
self == Self::None
|
self == Self::None
|
||||||
}
|
}
|
||||||
|
/// Is the `OptimizationLevel` Simple.
|
||||||
|
pub fn is_simple(self) -> bool {
|
||||||
|
self == Self::Simple
|
||||||
|
}
|
||||||
/// Is the `OptimizationLevel` Full.
|
/// Is the `OptimizationLevel` Full.
|
||||||
pub fn is_full(self) -> bool {
|
pub fn is_full(self) -> bool {
|
||||||
self == Self::Full
|
self == Self::Full
|
||||||
|
Loading…
x
Reference in New Issue
Block a user