pub fn opt_save_file(&self, cfgfil: &str) -> Result<TidySeverity, TidyError> {
    unsafe {
      match tidyOptSaveFile(self.tdoc, CString::new(cfgfil).unwrap().as_ptr()) {
        0 => Ok(TidySeverity::Success),
        1 => Ok(TidySeverity::Warning),
        2 => Ok(TidySeverity::Error),
        _ => Err(TidyError {
          severity: TidySeverity::Severe,
          message: String::from("Tidy save option file error"),
        }),
      }
    }
  }
// Document save functions
/// Save current settings to named file.
///
/// Only writes non-default values.
///
/// # Returns
/// A TidySeverity or a TidyError representing the status.
/// # Parameters
/// **cfgfil**	The filename to save the configuration to.
Document save functions
Save current settings to named file.

Only writes non-default values.
Document save functions Save current settings to named file . Only writes non - default values .
pub fn opt_save_file(&self, cfgfil: &str) -> Result<TidySeverity, TidyError> {
    unsafe {
      match tidyOptSaveFile(self.tdoc, CString::new(cfgfil).unwrap().as_ptr()) {
        0 => Ok(TidySeverity::Success),
        1 => Ok(TidySeverity::Warning),
        2 => Ok(TidySeverity::Error),
        _ => Err(TidyError {
          severity: TidySeverity::Severe,
          message: String::from("Tidy save option file error"),
        }),
      }
    }
  }
pub fn opt_save_file ( & self , cfgfil : & str ) -> Result < TidySeverity , TidyError > { unsafe { match tidyOptSaveFile ( self . tdoc , CString :: new ( cfgfil ) . unwrap ( ) . as_ptr ( ) ) { 0 => Ok ( TidySeverity :: Success ) , 1 => Ok ( TidySeverity :: Warning ) , 2 => Ok ( TidySeverity :: Error ) , _ => Err ( TidyError { severity : TidySeverity :: Severe , message : String :: from ( " " ) , } ) , } } }
Document save functions
Save current settings to named file.
Document save functions Save current settings to named file .
A TidySeverity or a TidyError representing the status.
A TidySeverity or a TidyError representing the status .
&self
cfgfil
&str