pub fn int_from_str<S>(int: S) -> Result<Value<'a>, TOMLError> where S: Into<String> + Clone {
    let result = Value::Integer(int.clone().into().into());
    if result.validate() {
      return Result::Ok(result);
    } else {
      return Result::Err(TOMLError::new(format!("Error parsing int. Argument: {}", int.into())));
    }
  }
/// Convenience function for creating an `Value::Integer` from an string type. Returns `Ok(Integer)` on success and
/// `Err(TOMLError)` on failure.
///
/// # Examples
///
/// ```
/// use tomllib::types::Value;
///
/// assert_eq!(Value::Integer("200".into()), Value::int_from_str("200").unwrap());
/// ```
Convenience function for creating an `Value::Integer` from an string type.
Convenience function for creating an ` Value :: Integer ` from an string type .
pub fn int_from_str<S>(int: S) -> Result<Value<'a>, TOMLError> where S: Into<String> + Clone {
    let result = Value::Integer(int.clone().into().into());
    if result.validate() {
      return Result::Ok(result);
    } else {
      return Result::Err(TOMLError::new(format!("Error parsing int. Argument: {}", int.into())));
    }
  }
pub fn int_from_str < S > ( int : S ) -> Result < Value < ' a > , TOMLError > where S : Into < String > + Clone { let result = Value :: Integer ( int . clone ( ) . into ( ) . into ( ) ) ; if result . validate ( ) { return Result :: Ok ( result ) ; } else { return Result :: Err ( TOMLError :: new ( format ! ( " " int into ( ) ) ) ) ; } }
Convenience function for creating an `Value::Integer` from an string type.
Convenience function for creating an ` Value :: Integer ` from an string type .
int
S
int
S
examples
```
use tomllib::types::Value.


` ` ` use tomllib :: types :: Value .