pub fn opt_set_value(&self, optid: TidyOptionId, val: &str) -> Result<TidySeverity, TidyError> {
    unsafe {
      match tidyOptSetValue(self.tdoc, optid, CString::new(val).unwrap().as_ptr()) {
        Bool_yes => Ok(TidySeverity::Success),
        _ => Err(TidyError {
          severity: TidySeverity::Severe,
          message: String::from("Tidy option set value error"),
        }),
      }
    }
  }
/// Set the option value as a string.
///
/// # Parameters
/// **optId**	The option ID of the value to set.
/// **val**	The string value to set.
/// # Returns
/// Returns a TidySeverity::Success indicating success or TidyError on failure.
Set the option value as a string.
Set the option value as a string .
pub fn opt_set_value(&self, optid: TidyOptionId, val: &str) -> Result<TidySeverity, TidyError> {
    unsafe {
      match tidyOptSetValue(self.tdoc, optid, CString::new(val).unwrap().as_ptr()) {
        Bool_yes => Ok(TidySeverity::Success),
        _ => Err(TidyError {
          severity: TidySeverity::Severe,
          message: String::from("Tidy option set value error"),
        }),
      }
    }
  }
pub fn opt_set_value ( & self , optid : TidyOptionId , val : & str ) -> Result < TidySeverity , TidyError > { unsafe { match tidyOptSetValue ( self . tdoc , optid , CString :: new ( val ) . unwrap ( ) . as_ptr ( ) ) { Bool_yes => Ok ( TidySeverity :: Success ) , _ => Err ( TidyError { severity : TidySeverity :: Severe , message : String :: from ( " " ) , } ) , } } }
Set the option value as a string.
Set the option value as a string .
Returns a TidySeverity::Success indicating success or TidyError on failure.
Returns a TidySeverity :: Success indicating success or TidyError on failure .
&self
optid
TidyOptionId
val
&str