Function blobber::get_string
[−]
[src]
pub fn get_string(bytes: usize, template: &str, numbered: bool) -> String
This function returns a string length of the
bytes
parameter. The template
&str
will be repeated
the number of times required to reach the bytes
if numbered
is true, each iteration will be extened by the number
plus '.' and a space. Any overflow will be truncated