Skip to main content

qubit_io/codec/
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
11/// Runtime byte order selector.
12#[derive(Clone, Copy, Debug, Eq, PartialEq)]
13pub enum ByteOrder {
14    /// Big-endian byte order.
15    BigEndian,
16
17    /// Little-endian byte order.
18    LittleEndian,
19}