pub fn convert_to(&self, color_spec: Spec) -> Color {
        let enum_color_spec_1 = color_spec as u32;

        let (obj_data, funcs) = self.get_color_obj_funcs();
        unsafe {
            let ret_val = ((*funcs).convert_to)(obj_data, enum_color_spec_1);
            let t = ret_val;
            let ret_val;
            if t.host_data != ::std::ptr::null() {
                ret_val = Color::new_from_rc(t);
            } else {
                ret_val = Color::new_from_owned(t);
            }
            ret_val
        }
    }
///
/// Creates a copy of *this* color in the format specified by *colorSpec.*
///
/// **See also:** [`spec()`]
/// [`to_cmyk()`]
/// [`to_hsv()`]
/// [`to_rgb()`]
/// [`is_valid()`]
Creates a copy of *this* color in the format specified by *colorSpec.
Creates a copy of * this * color in the format specified by * colorSpec .
pub fn convert_to(&self, color_spec: Spec) -> Color {
        let enum_color_spec_1 = color_spec as u32;
        let (obj_data, funcs) = self.get_color_obj_funcs();
        unsafe {
            let ret_val = ((*funcs).convert_to)(obj_data, enum_color_spec_1);
            let t = ret_val;
            let ret_val;
            if t.host_data != ::std::ptr::null() {
                ret_val = Color::new_from_rc(t);
            } else {
                ret_val = Color::new_from_owned(t);
            }
            ret_val
        }
    }
pub fn convert_to ( & self , color_spec : Spec ) -> Color { let enum_color_spec_1 = color_spec as u32 ; let ( obj_data , funcs ) = self . get_color_obj_funcs ( ) ; unsafe { let ret_val = ( ( * funcs ) . convert_to ) ( obj_data , enum_color_spec_1 ) ; let t = ret_val ; let ret_val ; if t . host_data != :: std :: ptr :: null ( ) { ret_val = Color :: new_from_rc ( t ) ; } else { ret_val = Color :: new_from_owned ( t ) ; } ret_val } }
Creates a copy of *this* color in the format specified by *colorSpec.
Creates a copy of * this * color in the format specified by * colorSpec .
&self
color_spec
Spec
&self
color_spec
Spec