pub fn save_file(&self, filename: &str) -> Result<TidySeverity, TidyError> {
    unsafe {
      match tidySaveFile(self.tdoc, CString::new(filename).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 file error"),
        }),
      }
    }
  }
/// Save the tidy document to the named file.
///
/// # Returns
/// A TidySeverity or a TidyError representing the status.
/// # Parameters
/// **filename**	The destination file name.
Save the tidy document to the named file.
Save the tidy document to the named file .
pub fn save_file(&self, filename: &str) -> Result<TidySeverity, TidyError> {
    unsafe {
      match tidySaveFile(self.tdoc, CString::new(filename).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 file error"),
        }),
      }
    }
  }
pub fn save_file ( & self , filename : & str ) -> Result < TidySeverity , TidyError > { unsafe { match tidySaveFile ( self . tdoc , CString :: new ( filename ) . unwrap ( ) . as_ptr ( ) ) { 0 => Ok ( TidySeverity :: Success ) , 1 => Ok ( TidySeverity :: Warning ) , 2 => Ok ( TidySeverity :: Error ) , _ => Err ( TidyError { severity : TidySeverity :: Severe , message : String :: from ( " " ) , } ) , } } }
Save the tidy document to the named file.
Save the tidy document to the named file .
A TidySeverity or a TidyError representing the status.
A TidySeverity or a TidyError representing the status .
&self
filename
&str