Lines Matching defs:u16
16 //! pub struct Rgb(u16) {
24 //! let blue = Bounded::<u16, 5>::new::<0x18>();
43 //! let raw: u16 = color.into();
65 //! - `storage_type`: The underlying unsigned integer type ([`u8`], [`u16`], [`u32`], [`u64`]).
597 impl From<Bounded<u16, 2>> for Priority {
598 fn from(value: Bounded<u16, 2>) -> Self {
608 impl From<Priority> for Bounded<u16, 2> {
610 fn from(p: Priority) -> Bounded<u16, 2> {
611 Bounded::from_expr(p as u16)
628 struct TestU16(u16) {
847 let raw: u16 = 0x42AB;
849 assert_eq!(u16::from(val), raw);