1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
/// if true:
///     return "Yes"
/// if false:
///     return "No"
#[allow(non_snake_case)]
pub fn YesNo(judge: bool) -> &'static str {
    if judge {
        "Yes"
    } else {
        "No"
    }
}

/// if true:
///     return "YES"
/// if false:
///     return "NO"
#[allow(non_snake_case)]
pub fn YESNO(judge: bool) -> &'static str {
    if judge {
        "YES"
    } else {
        "NO"
    }
}