/// Save the tidy document to given TidyBuffer object.
///
/// # Returns
/// A TidySeverity or a TidyError representing the status.
Save the tidy document to given TidyBuffer object.
Save the tidy document to given TidyBuffer object .
pub fn save_buffer(&self) -> Result<TidySeverity, TidyError> {
    unsafe {
      match tidySaveBuffer(self.tdoc, self.output) {
        0 => Ok(TidySeverity::Success),
        1 => Ok(TidySeverity::Warning),
        2 => Ok(TidySeverity::Error),
        _ => Err(TidyError {
          severity: TidySeverity::Severe,
          message: String::from("Tidy save buffer error"),
        }),
      }
    }
  }
pub fn save_buffer ( & self ) -> Result < TidySeverity , TidyError > { unsafe { match tidySaveBuffer ( self . tdoc , self . output ) { 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 given TidyBuffer object.
Save the tidy document to given TidyBuffer object .
A TidySeverity or a TidyError representing the status.
A TidySeverity or a TidyError representing the status .
&self
<not_specific>