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


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