pub struct EnvironmentOptimizationConfig {
pub target: TargetEnvironment,
pub memory_optimization: bool,
pub performance_optimization: bool,
pub size_optimization: bool,
pub extra_config: HashMap<String, String>,
}Expand description
环境特定优化配置
Fields§
§target: TargetEnvironment目标环境
memory_optimization: bool是否启用内存优化
performance_optimization: bool是否启用性能优化
size_optimization: bool是否启用大小优化
extra_config: HashMap<String, String>特定环境的额外配置
Trait Implementations§
Source§impl Clone for EnvironmentOptimizationConfig
impl Clone for EnvironmentOptimizationConfig
Source§fn clone(&self) -> EnvironmentOptimizationConfig
fn clone(&self) -> EnvironmentOptimizationConfig
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Default for EnvironmentOptimizationConfig
impl Default for EnvironmentOptimizationConfig
Source§fn default() -> EnvironmentOptimizationConfig
fn default() -> EnvironmentOptimizationConfig
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for EnvironmentOptimizationConfig
impl RefUnwindSafe for EnvironmentOptimizationConfig
impl Send for EnvironmentOptimizationConfig
impl Sync for EnvironmentOptimizationConfig
impl Unpin for EnvironmentOptimizationConfig
impl UnsafeUnpin for EnvironmentOptimizationConfig
impl UnwindSafe for EnvironmentOptimizationConfig
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more