seedelf_cli::assets

Function string_to_u64

Source
pub fn string_to_u64(input: String) -> Result<u64, String>
Expand description

Converts a string into a u64 value.

§Arguments

  • input - The string to parse into a u64.

§Returns

  • Ok(u64) - If the conversion is successful.
  • Err(String) - If the conversion fails.