Trait num_convert::Tbits
source · pub trait Tbits {
// Required method
fn tbits() -> u32;
}Available on crate feature
bits only.Expand description
Generic trait for define the size of the integers type in bits.
Examples
Usage:
fn get_bits_from_type<T: Tbits>(value: T) -> u32 {
T::tbits()
}