pub fn name(&self) -> Result<&str, common::Error> {
        let mut status = sys::UErrorCode::U_ZERO_ERROR;
        let name_c_str = unsafe { versioned_function!(ucnv_getName)(self.0.as_ptr(), &mut status) };
        common::Error::ok_or_warning(status)?;

        unsafe {
            Ok(CStr::from_ptr(name_c_str)
                .to_str()
                .expect("converter name is UTF-8 compatible"))
        }
    }
/// Attempts to get the canonical name of the converter.
///
/// This function wraps around `ucnv_getName`.
Attempts to get the canonical name of the converter.
This function wraps around `ucnv_getName`.
Attempts to get the canonical name of the converter . This function wraps around ` ucnv_getName ` .
pub fn name(&self) -> Result<&str, common::Error> {
        let mut status = sys::UErrorCode::U_ZERO_ERROR;
        let name_c_str = unsafe { versioned_function!(ucnv_getName)(self.0.as_ptr(), &mut status) };
        common::Error::ok_or_warning(status)?;
        unsafe {
            Ok(CStr::from_ptr(name_c_str)
                .to_str()
                .expect("converter name is UTF-8 compatible"))
        }
    }
pub fn name ( & self ) -> Result < & str , common :: Error > { let mut status = sys :: UErrorCode :: U_ZERO_ERROR ; let name_c_str = unsafe { versioned_function ! ( ucnv_getName ) ( self . 0 . as_ptr ( ) , & mut status ) } ; common :: Error :: ok_or_warning ( status ) ? ; unsafe { Ok ( CStr :: from_ptr ( name_c_str ) . to_str ( ) . expect ( " " ) ) } }
Attempts to get the canonical name of the converter.
Attempts to get the canonical name of the converter .
&self
&self