pub fn into_uint_ref<T>(value: &T) -> &T::Uintwhere
T: UintCast,
Expand description
Cast from a color type reference to an unsigned integer reference.
use palette::{cast, rgb::PackedArgb, Srgba};
let color: PackedArgb = Srgba::new(0x17, 0xC6, 0x4C, 0xFF).into();
assert_eq!(cast::into_uint_ref(&color), &0xFF17C64C);