gstreamerMacro idstr
Source macro_rules! idstr {
($s:literal) => { ... };
}
Expand description
Builds an IdStr
from a string literal.
§Examples
use gstreamer::{idstr, IdStr};
use std::sync::LazyLock;
static MY_ID_STR: LazyLock<IdStr> = LazyLock::new(|| idstr!("static id"));
assert_eq!(*MY_ID_STR, "static id");
let my_id_str: IdStr = idstr!("local id");
assert_eq!(my_id_str, "local id");