str_from_int

Function str_from_int 

Source
pub fn str_from_int(x: i32) -> SmtString
Expand description

Convert x to a string

  • Return a sequence of digits if x >= 0
  • Return the empty string if x < 0

ยงExamples

use aws_smt_strings::smt_strings::*;

assert_eq!(str_from_int(0), SmtString::from("0"));
assert_eq!(str_from_int(-1), EMPTY);
assert_eq!(str_from_int(1002), SmtString::from("1002"));