Describe Your Feature
Casting any number to a string
Provide a Code Snippet Using Your Feature
import numbers::Cast;
fn main() {
printf(12.cast<str>());
}
Prerequisites
String adding
Additional Information
Should be done with an implementation of the Cast trait in the string.rv file. Should iterate over each digit, adding them to a string then returning that string.
Describe Your Feature
Casting any number to a string
Provide a Code Snippet Using Your Feature
Prerequisites
String adding
Additional Information
Should be done with an implementation of the Cast trait in the string.rv file. Should iterate over each digit, adding them to a string then returning that string.