pub fn parse_file(&self, filename: &str) -> Result<TidySeverity, TidyError> {
    unsafe {
      match tidyParseFile(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 parse file error"),
        }),
      }
    }
  }
// Document Parse
/// Parse markup in named file.
///
/// # Returns
/// Returns tTidySeverity::Error indicating that errors were present in the document, TidySeverity::Warning indicating warnings, and TidySeverity::Success in the case of everything being okay.
/// # Parameters  
/// **filename**	The filename to parse.
Document Parse
Parse markup in named file.
Document Parse Parse markup in named file .
pub fn parse_file(&self, filename: &str) -> Result<TidySeverity, TidyError> {
    unsafe {
      match tidyParseFile(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 parse file error"),
        }),
      }
    }
  }
pub fn parse_file ( & self , filename : & str ) -> Result < TidySeverity , TidyError > { unsafe { match tidyParseFile ( 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 ( " " ) , } ) , } } }
Document Parse
Parse markup in named file.
Document Parse Parse markup in named file .
Returns tTidySeverity::Error indicating that errors were present in the document, TidySeverity::Warning indicating warnings, and TidySeverity::Success in the case of everything being okay.
Returns tTidySeverity :: Error indicating that errors were present in the document TidySeverity :: Warning indicating warnings and TidySeverity :: Success in the case of everything being okay .
&self
filename
&str
parameters  
filename**   The filename to parse.
filename ** The filename to parse .