Skip to navigation
One liner if in rust
11.10.22
let title = if p[0]["values"]["title"].is_string() { p[0]["values"]["title"].to_string() } else { "".to_string() };
https://doc.rust-lang.org/std/keyword.if.html
Reply
Anonymous
Information Epoch 1732465915
Avoid captive user interfaces.
Home
Notebook
Contact us