Macro fish_printf::sprintf

source ยท
macro_rules! sprintf {
    ($fmt:literal, $($arg:expr),* $(,)?) => { ... };
    (
        => $target:expr, // target string
        $fmt:literal, // format string
        $($arg:expr),* // arguments
        $(,)? // optional trailing comma
    ) => { ... };
    (
        => $target:expr, // target string
        $fmt:expr, // format string as UTF32String
        $($arg:expr),* // arguments
        $(,)? // optional trailing comma
    ) => { ... };
    ($fmt:expr, $($arg:expr),* $(,)?) => { ... };
}