// Return (f32, f32, f32) rather than lab::Lab so that the example works even if
// the library is built without lab feature.  Normally, this would just return
// lab::Lab and the library would be built with lab feature enabled (which is
// the default).
Return (f32, f32, f32) rather than lab::Lab so that the example works even if
the library is built without lab feature.  Normally, this would just return
lab::Lab and the library would be built with lab feature enabled (which is
the default).
Return ( f32 f32 f32 ) rather than lab :: Lab so that the example works even if the library is built without lab feature . Normally this would just return lab :: Lab and the library would be built with lab feature enabled ( which is the default ) .
fn from_rgb(rgb: u32) -> (f32, f32, f32) {
    let lab =
        lab::Lab::from_rgb(&[(rgb >> 16) as u8, (rgb >> 8) as u8, rgb as u8]);
    (lab.l, lab.a, lab.b)
}
fn from_rgb ( rgb : u32 ) -> ( f32 , f32 , f32 ) { let lab = lab :: Lab :: from_rgb ( & [ ( rgb >> 16 ) as u8 , ( rgb >> 8 ) as u8 , rgb as u8 ] ) ; ( lab . l , lab . a , lab . b ) }
Return (f32, f32, f32) rather than lab::Lab so that the example works even if
the library is built without lab feature.
Return ( f32 f32 f32 ) rather than lab :: Lab so that the example works even if the library is built without lab feature .
rgb
u32