/// Policy for handling values that exceed a field's width.
#[derive(Debug, Default, Clone, Copy, PartialEq, Eq)]
pub enum TruncationPolicy {
    /// Return an error if the value exceeds the field width.
    #[default]
    Error,
    /// Truncate from the left, keeping the rightmost bytes.
    Left,
    /// Truncate from the right, keeping the leftmost bytes.
    Right,
}
