Enum slice_queue::AutoShrinkMode [−][src]
pub enum AutoShrinkMode {
Opportunistic,
Aggressive,
Disabled,
}Variants
OpportunisticShrinks the SliceQueue in 50% steps using self.shrink_opportunistic
This mode is the default value
AggressiveImmediately shrinks the SliceQueue to the amount of bytes used using self.shrink_to_fit
This method is potentially inefficient but can be useful in certain scenarios
DisabledDisables auto-shrink
If this mode is set, you must take care to use the self.shrink_opportunistic or
self.shrink_to_fit methods accordingly if necessary.
Trait Implementations
impl Copy for AutoShrinkMode[src]
impl Copy for AutoShrinkModeimpl Clone for AutoShrinkMode[src]
impl Clone for AutoShrinkModefn clone(&self) -> AutoShrinkMode[src]
fn clone(&self) -> AutoShrinkModeReturns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)1.0.0[src]
fn clone_from(&mut self, source: &Self)Performs copy-assignment from source. Read more
impl Debug for AutoShrinkMode[src]
impl Debug for AutoShrinkModefn fmt(&self, f: &mut Formatter) -> Result[src]
fn fmt(&self, f: &mut Formatter) -> ResultFormats the value using the given formatter. Read more
impl Ord for AutoShrinkMode[src]
impl Ord for AutoShrinkModefn cmp(&self, other: &AutoShrinkMode) -> Ordering[src]
fn cmp(&self, other: &AutoShrinkMode) -> OrderingThis method returns an Ordering between self and other. Read more
fn max(self, other: Self) -> Self1.21.0[src]
fn max(self, other: Self) -> SelfCompares and returns the maximum of two values. Read more
fn min(self, other: Self) -> Self1.21.0[src]
fn min(self, other: Self) -> SelfCompares and returns the minimum of two values. Read more
impl PartialOrd for AutoShrinkMode[src]
impl PartialOrd for AutoShrinkModefn partial_cmp(&self, other: &AutoShrinkMode) -> Option<Ordering>[src]
fn partial_cmp(&self, other: &AutoShrinkMode) -> Option<Ordering>This method returns an ordering between self and other values if one exists. Read more
fn lt(&self, other: &Rhs) -> bool1.0.0[src]
fn lt(&self, other: &Rhs) -> boolThis method tests less than (for self and other) and is used by the < operator. Read more
fn le(&self, other: &Rhs) -> bool1.0.0[src]
fn le(&self, other: &Rhs) -> boolThis method tests less than or equal to (for self and other) and is used by the <= operator. Read more
fn gt(&self, other: &Rhs) -> bool1.0.0[src]
fn gt(&self, other: &Rhs) -> boolThis method tests greater than (for self and other) and is used by the > operator. Read more
fn ge(&self, other: &Rhs) -> bool1.0.0[src]
fn ge(&self, other: &Rhs) -> boolThis method tests greater than or equal to (for self and other) and is used by the >= operator. Read more
impl PartialEq for AutoShrinkMode[src]
impl PartialEq for AutoShrinkModefn eq(&self, other: &AutoShrinkMode) -> bool[src]
fn eq(&self, other: &AutoShrinkMode) -> boolThis method tests for self and other values to be equal, and is used by ==. Read more
fn ne(&self, other: &Rhs) -> bool1.0.0[src]
fn ne(&self, other: &Rhs) -> boolThis method tests for !=.
impl Eq for AutoShrinkMode[src]
impl Eq for AutoShrinkModeimpl Default for AutoShrinkMode[src]
impl Default for AutoShrinkModeAuto Trait Implementations
impl Send for AutoShrinkMode
impl Send for AutoShrinkModeimpl Sync for AutoShrinkMode
impl Sync for AutoShrinkMode