numcodecs_linear_quantize

Enum LinearQuantizeBins

Source
#[repr(u8)]
pub enum LinearQuantizeBins {
Show 64 variants _1B1 = 1, _1B2 = 2, _1B3 = 3, _1B4 = 4, _1B5 = 5, _1B6 = 6, _1B7 = 7, _1B8 = 8, _1B9 = 9, _1B10 = 10, _1B11 = 11, _1B12 = 12, _1B13 = 13, _1B14 = 14, _1B15 = 15, _1B16 = 16, _1B17 = 17, _1B18 = 18, _1B19 = 19, _1B20 = 20, _1B21 = 21, _1B22 = 22, _1B23 = 23, _1B24 = 24, _1B25 = 25, _1B26 = 26, _1B27 = 27, _1B28 = 28, _1B29 = 29, _1B30 = 30, _1B31 = 31, _1B32 = 32, _1B33 = 33, _1B34 = 34, _1B35 = 35, _1B36 = 36, _1B37 = 37, _1B38 = 38, _1B39 = 39, _1B40 = 40, _1B41 = 41, _1B42 = 42, _1B43 = 43, _1B44 = 44, _1B45 = 45, _1B46 = 46, _1B47 = 47, _1B48 = 48, _1B49 = 49, _1B50 = 50, _1B51 = 51, _1B52 = 52, _1B53 = 53, _1B54 = 54, _1B55 = 55, _1B56 = 56, _1B57 = 57, _1B58 = 58, _1B59 = 59, _1B60 = 60, _1B61 = 61, _1B62 = 62, _1B63 = 63, _1B64 = 64,
}
Expand description

Number of bins for quantization, written in base-2 scientific notation.

The binary #[repr(u8)] value of each variant is equivalent to the binary logarithm of the number of bins, i.e. the binary precision or the number of bits used.

Variants§

§

_1B1 = 1

§

_1B2 = 2

§

_1B3 = 3

§

_1B4 = 4

§

_1B5 = 5

§

_1B6 = 6

§

_1B7 = 7

§

_1B8 = 8

§

_1B9 = 9

§

_1B10 = 10

§

_1B11 = 11

§

_1B12 = 12

§

_1B13 = 13

§

_1B14 = 14

§

_1B15 = 15

§

_1B16 = 16

§

_1B17 = 17

§

_1B18 = 18

§

_1B19 = 19

§

_1B20 = 20

§

_1B21 = 21

§

_1B22 = 22

§

_1B23 = 23

§

_1B24 = 24

§

_1B25 = 25

§

_1B26 = 26

§

_1B27 = 27

§

_1B28 = 28

§

_1B29 = 29

§

_1B30 = 30

§

_1B31 = 31

§

_1B32 = 32

§

_1B33 = 33

§

_1B34 = 34

§

_1B35 = 35

§

_1B36 = 36

§

_1B37 = 37

§

_1B38 = 38

§

_1B39 = 39

§

_1B40 = 40

§

_1B41 = 41

§

_1B42 = 42

§

_1B43 = 43

§

_1B44 = 44

§

_1B45 = 45

§

_1B46 = 46

§

_1B47 = 47

§

_1B48 = 48

§

_1B49 = 49

§

_1B50 = 50

§

_1B51 = 51

§

_1B52 = 52

§

_1B53 = 53

§

_1B54 = 54

§

_1B55 = 55

§

_1B56 = 56

§

_1B57 = 57

§

_1B58 = 58

§

_1B59 = 59

§

_1B60 = 60

§

_1B61 = 61

§

_1B62 = 62

§

_1B63 = 63

§

_1B64 = 64

Trait Implementations§

Source§

impl Clone for LinearQuantizeBins

Source§

fn clone(&self) -> LinearQuantizeBins

Returns a copy of the value. Read more
1.0.0 · Source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
Source§

impl<'de> Deserialize<'de> for LinearQuantizeBins

Source§

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 LinearQuantizeBins

Source§

fn schema_name() -> Cow<'static, str>

The name of the generated JSON Schema. Read more
Source§

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

Generates a JSON Schema for this type. Read more
§

fn always_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 more
Source§

impl Serialize for LinearQuantizeBins

Source§

fn serialize<S>(&self, serializer: S) -> Result<S::Ok, S::Error>
where S: Serializer,

Serialize this value into the given Serde serializer. Read more
Source§

impl Copy for LinearQuantizeBins

Auto Trait Implementations§

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> CloneToUninit for T
where T: Clone,

Source§

unsafe fn clone_to_uninit(&self, dst: *mut T)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dst. Read more
Source§

impl<T> DynClone for T
where T: Clone,

Source§

fn __clone_box(&self, _: Private) -> *mut ()

Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T> ToOwned for T
where T: Clone,

Source§

type Owned = T

The resulting type after obtaining ownership.
Source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
Source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
Source§

impl<T> DeserializeOwned for T
where T: for<'de> Deserialize<'de>,