Skip to main content

qubit_codec/byte_order/
byte_order_spec.rs

1// =============================================================================
2//    Copyright (c) 2026 Haixing Hu.
3//
4//    SPDX-License-Identifier: Apache-2.0
5//
6//    Licensed under the Apache License, Version 2.0.
7// =============================================================================
8
9use crate::ByteOrder;
10
11/// Describes a type-level byte order.
12pub trait ByteOrderSpec: Copy + Default {
13    /// Runtime value represented by this type-level byte order.
14    const ORDER: ByteOrder;
15}