pub enum PcoModeSpec {
    Auto,
    Classic,
    TryFloatMult {
        float_mult_base: f64,
    },
    TryFloatQuant {
        float_quant_bits: u32,
    },
    TryIntMult {
        int_mult_base: u64,
    },
}Expand description
Pco compression mode
Variants§
Auto
Automatically detects a good mode.
This works well most of the time, but costs some compression time and can select a bad mode in adversarial cases.
Classic
Only uses the classic mode
TryFloatMult
Tries using the FloatMult mode with a given base.
Only applies to floating-point types.
TryFloatQuant
Tries using the FloatQuant mode with the given number of bits of
quantization.
Only applies to floating-point types.
TryIntMult
Tries using the IntMult mode with a given base.
Only applies to integer types.
Trait Implementations§
Source§impl Clone for PcoModeSpec
 
impl Clone for PcoModeSpec
Source§fn clone(&self) -> PcoModeSpec
 
fn clone(&self) -> PcoModeSpec
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 PcoModeSpec
 
impl Debug for PcoModeSpec
Source§impl Default for PcoModeSpec
 
impl Default for PcoModeSpec
Source§fn default() -> PcoModeSpec
 
fn default() -> PcoModeSpec
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for PcoModeSpec
 
impl<'de> Deserialize<'de> for PcoModeSpec
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 JsonSchema for PcoModeSpec
 
impl JsonSchema for PcoModeSpec
Source§fn schema_id() -> Cow<'static, str>
 
fn schema_id() -> Cow<'static, str>
Returns a string that uniquely identifies the schema produced by this type. Read more
Source§fn json_schema(generator: &mut SchemaGenerator) -> Schema
 
fn json_schema(generator: &mut SchemaGenerator) -> Schema
Generates a JSON Schema for this type. Read more
Source§fn inline_schema() -> bool
 
fn inline_schema() -> bool
Whether JSON Schemas generated for this type should be included directly in parent schemas,
rather than being re-used where possible using the 
$ref keyword. Read moreSource§impl PartialEq for PcoModeSpec
 
impl PartialEq for PcoModeSpec
Source§impl Serialize for PcoModeSpec
 
impl Serialize for PcoModeSpec
impl Copy for PcoModeSpec
impl StructuralPartialEq for PcoModeSpec
Auto Trait Implementations§
impl Freeze for PcoModeSpec
impl RefUnwindSafe for PcoModeSpec
impl Send for PcoModeSpec
impl Sync for PcoModeSpec
impl Unpin for PcoModeSpec
impl UnwindSafe for PcoModeSpec
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