pub enum OptStrategy {
Speed,
Default,
Memory,
}Expand description
This parameter determines the optimization strategy used when there are multiple strategies available for the selected algorithm and they have differing costs in terms of memory usage and performance. Available options are:
- Speed - uses the optimization strategy which maximizes performance at the cost of additional memory usage.
- Default - uses the optimization strategy that best balances performance and memory usage.
- Memory - uses the optimization strategy which minimizes memory usage at a cost of decreased performance.
§Default
Default
§Example
OPT_STRATEGY : Memory
Variants§
Trait Implementations§
Source§impl Clone for OptStrategy
impl Clone for OptStrategy
Source§fn clone(&self) -> OptStrategy
fn clone(&self) -> OptStrategy
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 Debug for OptStrategy
impl Debug for OptStrategy
Source§impl Default for OptStrategy
impl Default for OptStrategy
Source§fn default() -> OptStrategy
fn default() -> OptStrategy
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for OptStrategy
impl<'de> Deserialize<'de> for OptStrategy
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl Display for OptStrategy
impl Display for OptStrategy
Source§impl Hash for OptStrategy
impl Hash for OptStrategy
Source§impl KeywordDisplay for OptStrategy
impl KeywordDisplay for OptStrategy
Source§impl Ord for OptStrategy
impl Ord for OptStrategy
Source§fn cmp(&self, other: &OptStrategy) -> Ordering
fn cmp(&self, other: &OptStrategy) -> Ordering
1.21.0 · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
Source§impl PartialEq for OptStrategy
impl PartialEq for OptStrategy
Source§impl PartialOrd for OptStrategy
impl PartialOrd for OptStrategy
Source§impl Serialize for OptStrategy
impl Serialize for OptStrategy
impl Copy for OptStrategy
impl Eq for OptStrategy
impl StructuralPartialEq for OptStrategy
Auto Trait Implementations§
impl Freeze for OptStrategy
impl RefUnwindSafe for OptStrategy
impl Send for OptStrategy
impl Sync for OptStrategy
impl Unpin for OptStrategy
impl UnwindSafe for OptStrategy
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