Trait crypto::ciphers::traits::consts::Bit

source ·
pub trait Bit: 'static + Sealed + Copy + Default {
    const U8: u8;
    const BOOL: bool;

    fn new() -> Self;
    fn to_u8() -> u8;
    fn to_bool() -> bool;
}
Expand description

The marker trait for compile time bits.

Required Associated Constants§

Required Methods§

Instantiates a singleton representing this bit.

Implementors§