pub fn opt_parse_value(&self, optnam: &str, val: &str) -> Result<TidySeverity, TidyError> {
    unsafe {
      match tidyOptParseValue(
        self.tdoc,
        CString::new(optnam).unwrap().as_ptr(),
        CString::new(val).unwrap().as_ptr(),
      ) {
        Bool_yes => Ok(TidySeverity::Success),
        _ => Err(TidyError {
          severity: TidySeverity::Severe,
          message: String::from("Tidy option parse value error"),
        }),
      }
    }
  }
/// Set named option value as a string, regardless of the TidyOptionType.
///
/// # Remarks
/// This is good setter if you are unsure of the type.
/// # Parameters
/// **optnam**	The name of the option to set; this is the string value from the UI, e.g., error-file.
/// # Returns
/// Returns TidySeverity::Success indicating success or a TidyError on failure.
/// **val**	The value to set.
Set named option value as a string, regardless of the TidyOptionType.
Set named option value as a string regardless of the TidyOptionType .
pub fn opt_parse_value(&self, optnam: &str, val: &str) -> Result<TidySeverity, TidyError> {
    unsafe {
      match tidyOptParseValue(
        self.tdoc,
        CString::new(optnam).unwrap().as_ptr(),
        CString::new(val).unwrap().as_ptr(),
      ) {
        Bool_yes => Ok(TidySeverity::Success),
        _ => Err(TidyError {
          severity: TidySeverity::Severe,
          message: String::from("Tidy option parse value error"),
        }),
      }
    }
  }
pub fn opt_parse_value ( & self , optnam : & str , val : & str ) -> Result < TidySeverity , TidyError > { unsafe { match tidyOptParseValue ( self . tdoc , CString :: new ( optnam ) . unwrap ( ) . as_ptr ( ) , CString :: new ( val ) . unwrap ( ) . as_ptr ( ) , ) { Bool_yes => Ok ( TidySeverity :: Success ) , _ => Err ( TidyError { severity : TidySeverity :: Severe , message : String :: from ( " " ) , } ) , } } }
Set named option value as a string, regardless of the TidyOptionType.
Set named option value as a string regardless of the TidyOptionType .
Returns TidySeverity::Success indicating success or a TidyError on failure.
val**        The value to set.
Returns TidySeverity :: Success indicating success or a TidyError on failure . val ** The value to set .
&self
optnam
&str
val
&str
remarks
This is good setter if you are unsure of the type.
This is good setter if you are unsure of the type .