pub fn opt_set_bool(&self, optid: TidyOptionId, val: bool) -> Result<TidySeverity, TidyError> {
    unsafe {
      match tidyOptSetBool(self.tdoc, optid, TidyUtil::bool_to_tidy_bool(val)) {
        Bool_yes => Ok(TidySeverity::Success),
        _ => Err(TidyError {
          severity: TidySeverity::Severe,
          message: String::from("Tidy  option set bool error"),
        }),
      }
    }
  }
/// Set option value as a Boolean flag.
///
/// # Parameters
/// **optid**	The option ID to set.
/// **val**	The value to set.
/// # Returns
/// Returns a TidySeverity::Success indicating success or TidyError on failure.
Set option value as a Boolean flag.
Set option value as a Boolean flag .
pub fn opt_set_bool(&self, optid: TidyOptionId, val: bool) -> Result<TidySeverity, TidyError> {
    unsafe {
      match tidyOptSetBool(self.tdoc, optid, TidyUtil::bool_to_tidy_bool(val)) {
        Bool_yes => Ok(TidySeverity::Success),
        _ => Err(TidyError {
          severity: TidySeverity::Severe,
          message: String::from("Tidy  option set bool error"),
        }),
      }
    }
  }
pub fn opt_set_bool ( & self , optid : TidyOptionId , val : bool ) -> Result < TidySeverity , TidyError > { unsafe { match tidyOptSetBool ( self . tdoc , optid , TidyUtil :: bool_to_tidy_bool ( val ) ) { Bool_yes => Ok ( TidySeverity :: Success ) , _ => Err ( TidyError { severity : TidySeverity :: Severe , message : String :: from ( " " ) , } ) , } } }
Set option value as a Boolean flag.
Set option value as a Boolean flag .
Returns a TidySeverity::Success indicating success or TidyError on failure.
Returns a TidySeverity :: Success indicating success or TidyError on failure .
&self
optid
TidyOptionId
val
bool