qubit_io/ext/byte_order.rs
1/*******************************************************************************
2 *
3 * Copyright (c) 2026 Haixing Hu.
4 *
5 * SPDX-License-Identifier: Apache-2.0
6 *
7 * Licensed under the Apache License, Version 2.0.
8 *
9 ******************************************************************************/
10/// Byte order used when encoding or decoding multi-byte scalar values.
11#[derive(Debug, Clone, Copy, PartialEq, Eq, Hash)]
12pub enum ByteOrder {
13 /// Most significant byte first.
14 BigEndian,
15 /// Least significant byte first.
16 LittleEndian,
17}