pub fn run_diagnostics(&self) -> Result<TidySeverity, TidyError> {
    unsafe {
      match tidyRunDiagnostics(self.tdoc) {
        0 => Ok(TidySeverity::Success),
        1 => Ok(TidySeverity::Warning),
        2 => Ok(TidySeverity::Error),
        _ => Err(TidyError {
          severity: TidySeverity::Severe,
          message: String::from("Tidy run diagnostics error"),
        }),
      }
    }
  }
/// Reports the document type and diagnostic statistics on parsed and repaired markup.
///
/// You must call tidyCleanAndRepair() before using this function.
///
/// # Returns
/// An integer representing the status.
Reports the document type and diagnostic statistics on parsed and repaired markup.
You must call tidyCleanAndRepair() before using this function.
Reports the document type and diagnostic statistics on parsed and repaired markup . You must call tidyCleanAndRepair () before using this function .
pub fn run_diagnostics(&self) -> Result<TidySeverity, TidyError> {
    unsafe {
      match tidyRunDiagnostics(self.tdoc) {
        0 => Ok(TidySeverity::Success),
        1 => Ok(TidySeverity::Warning),
        2 => Ok(TidySeverity::Error),
        _ => Err(TidyError {
          severity: TidySeverity::Severe,
          message: String::from("Tidy run diagnostics error"),
        }),
      }
    }
  }
pub fn run_diagnostics ( & self ) -> Result < TidySeverity , TidyError > { unsafe { match tidyRunDiagnostics ( self . tdoc ) { 0 => Ok ( TidySeverity :: Success ) , 1 => Ok ( TidySeverity :: Warning ) , 2 => Ok ( TidySeverity :: Error ) , _ => Err ( TidyError { severity : TidySeverity :: Severe , message : String :: from ( " " ) , } ) , } } }
Reports the document type and diagnostic statistics on parsed and repaired markup.
Reports the document type and diagnostic statistics on parsed and repaired markup .
An integer representing the status.
An integer representing the status .
&self