diskann_tools/utils/data_type.rs
1/*
2 * Copyright (c) Microsoft Corporation.
3 * Licensed under the MIT license.
4 */
5
6use clap::ValueEnum;
7use serde::{Deserialize, Serialize};
8
9#[derive(Copy, Clone, PartialEq, Eq, PartialOrd, Ord, ValueEnum, Debug, Deserialize, Serialize)]
10pub enum DataType {
11 /// 32 bit float.
12 Float,
13
14 /// Unsigned 8-bit integer.
15 Uint8,
16
17 /// Signed 8-bit integer.
18 Int8,
19
20 /// Half precision float.
21 Fp16,
22}