parse_bool

Macro parse_bool 

Source
macro_rules! parse_bool {
    ($value:expr) => { ... };
}
Expand description

Converts a string representation of a boolean to an equivalent logical value

ยงUsage

use we_cdk::*;

#[action]
fn _constructor() {
    let result: Boolean = parse_bool!("true");
}