Skip to main content

qubit_io/codec/
byte_order_spec.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
11use crate::ByteOrder;
12
13/// Describes a type-level byte order.
14pub trait ByteOrderSpec: Copy + Default {
15    /// Runtime value represented by this type-level byte order.
16    const ORDER: ByteOrder;
17}