pub trait AsString {
// Required method
fn as_string(self) -> String;
}
Expand description
We require to use a custom trait because we need to customize some of the string transformation and we need to control the String conversion ourself.
pub trait AsString {
// Required method
fn as_string(self) -> String;
}
We require to use a custom trait because we need to customize some of the string transformation and we need to control the String conversion ourself.