usethiserror::Error;/// The error raised when working with role values.
#[derive(Error, Debug)]pubenumRoleError{/// Raised when the provided role holds a value that is neither zero nor a
/// power of two.
#[error("invalid role value: `{0}` is neither zero nor a power of two")]
InvalidRole(usize),}