macro_rules! text {
(id = $id:expr, $text:expr) => { ... };
($text:expr) => { ... };
}Expand description
Create a new Text element.
let a = text!("hello");
let b = text!(id = "farewell-message", "hello");
Text created with this macro is accessible. The macro generates an ID
based on the source location. See the docs for Text for a more in-depth
explanation of the significance of the ID of a Text element.