pub fn try_clone(&self) -> Result<Self, common::Error> {
        let mut status = sys::UErrorCode::U_ZERO_ERROR;
        let converter_ptr = unsafe {
            versioned_function!(ucnv_safeClone)(
                self.0.as_ptr(),
                null_mut(),
                null_mut(),
                &mut status,
            )
        };
        common::Error::ok_or_warning(status)?;

        Ok(Self(
            NonNull::new(converter_ptr).expect("converter pointer should not be null"),
        ))
    }
/// Attempts to clone a given converter.
///
/// This function wraps around `ucnv_safeClone`.
Attempts to clone a given converter.
This function wraps around `ucnv_safeClone`.
Attempts to clone a given converter . This function wraps around ` ucnv_safeClone ` .
pub fn try_clone(&self) -> Result<Self, common::Error> {
        let mut status = sys::UErrorCode::U_ZERO_ERROR;
        let converter_ptr = unsafe {
            versioned_function!(ucnv_safeClone)(
                self.0.as_ptr(),
                null_mut(),
                null_mut(),
                &mut status,
            )
        };
        common::Error::ok_or_warning(status)?;
        Ok(Self(
            NonNull::new(converter_ptr).expect("converter pointer should not be null"),
        ))
    }
pub fn try_clone ( & self ) -> Result < Self , common :: Error > { let mut status = sys :: UErrorCode :: U_ZERO_ERROR ; let converter_ptr = unsafe { versioned_function ! ( ucnv_safeClone ) ( self . 0 . as_ptr ( ) , null_mut ( ) , null_mut ( ) , & mut status , ) } ; common :: Error :: ok_or_warning ( status ) ? ; Ok ( Self ( NonNull :: new ( converter_ptr ) . expect ( " " ) , ) ) }
Attempts to clone a given converter.
Attempts to clone a given converter .
&self
&self