ambientcg 0.2.2

Rust interface around the ambientCG v2 web API
Documentation
1
2
3
4
5
6
pub fn non_empty_str(input: Option<String>) -> Option<String> {
    match &input {
        Some(str) => if str.is_empty() { None } else { Some(str.to_string()) }
        None => None
    }
}