pub unsafe fn color_to_u16(color: Color) -> Result<u16>
This function is unsafe because it may dereference raw pointers.