pub type Result<T> = core::result::Result<T, Error>;
#[derive(Debug, Clone, PartialEq, Eq, thiserror::Error)]
#[non_exhaustive]
pub enum Error {
#[error(transparent)]
BufferTooShort(#[from] broadcast_common::error::BufferTooShort),
#[error(transparent)]
OutputBufferTooSmall(#[from] broadcast_common::error::OutputBufferTooSmall),
#[error("too many cc triplets: {0} (cc_count is 5-bit, max 31)")]
TooManyTriplets(usize),
#[error(transparent)]
ReservedBits(#[from] broadcast_common::error::ReservedBits),
}