I need to format (for example 6) to base 3 output (it will be 20). All I found was writing the conversion manually or using another libraries.
let a = (format!("{:b}",n));
or
let a = (format!("{:x}",n));
convert to bin and hex, but I need another base.