pub fn parse_string(&self, content: Vec<u8>) -> Result<TidySeverity, TidyError> {
    unsafe {
      let c_input = CString::from_vec_unchecked(content);
      let raw_input = c_input.into_raw();
      let rc = tidyParseString(self.tdoc, raw_input);
      let _c_input = CString::from_raw(raw_input);
      match rc {
        0 => Ok(TidySeverity::Success),
        1 => Ok(TidySeverity::Warning),
        2 => Ok(TidySeverity::Error),
        _ => Err(TidyError {
          severity: TidySeverity::Severe,
          message: String::from("Tidy parse string error"),
        }),
      }
    }
  }
/// Parse markup in given string.
///
/// 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  
/// **content**	The string to parse.
Parse markup in given string.
Parse markup in given string .
pub fn parse_string(&self, content: Vec<u8>) -> Result<TidySeverity, TidyError> {
    unsafe {
      let c_input = CString::from_vec_unchecked(content);
      let raw_input = c_input.into_raw();
      let rc = tidyParseString(self.tdoc, raw_input);
      let _c_input = CString::from_raw(raw_input);
      match rc {
        0 => Ok(TidySeverity::Success),
        1 => Ok(TidySeverity::Warning),
        2 => Ok(TidySeverity::Error),
        _ => Err(TidyError {
          severity: TidySeverity::Severe,
          message: String::from("Tidy parse string error"),
        }),
      }
    }
  }
pub fn parse_string ( & self , content : Vec < u8 > ) -> Result < TidySeverity , TidyError > { unsafe { let c_input = CString :: from_vec_unchecked ( content ) ; let raw_input = c_input . into_raw ( ) ; let rc = tidyParseString ( self . tdoc , raw_input ) ; let _c_input = CString :: from_raw ( raw_input ) ; match rc { 0 => Ok ( TidySeverity :: Success ) , 1 => Ok ( TidySeverity :: Warning ) , 2 => Ok ( TidySeverity :: Error ) , _ => Err ( TidyError { severity : TidySeverity :: Severe , message : String :: from ( " " ) , } ) , } } }
Parse markup in given string.
Parse markup in given string .
&self
content
Vec<u8>
parameters  
content**    The string to parse.
content ** The string to parse .