as_repr-core 1.5.0

Rust trait for constant `#[repr(T)]` conversions
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
//! _**`inherent`**_ Define an inherent representation

use crate::*;

/// Similar to [`AsRepr`], but defines an "inherent" representation.
///
/// The inherent representation is a representation to use for comparisons or
/// arithmetic.
///
/// The representations should not implement this trait on themselves.
pub trait AsReprInherent: AsRepr<Self::InherentRepr> + Copy {
    /// The inherent representation
    type InherentRepr: Copy;
}