[][src]Macro fallible_collections::tryformat

macro_rules! tryformat {
    ($max_capacity:tt, $($arg:tt)*) => { ... };
}

Take a max capacity a try allocating a string with it.

Warning:

the max capacity must be > to the formating of the arguments. If writing the argument on the string exceed the capacity, no error is return and an allocation can occurs which can lead to a panic