Skip to main content

string_slice

Macro string_slice 

Source
macro_rules! string_slice {
    ($name: literal, $value: expr) => { ... };
    ($name: path, $value: expr) => { ... };
}
Expand description

Create a String array argument.

§Examples

// One of these is not an actor:
ctx.set_attribute(
    "dummy",
    &[nsi::string_slice!(
        "actors",
        &["Klaus Kinski", "Giorgio Moroder", "Rainer Brandt"]
    )],
);