optempty 0.1.13

Tools for working types that may be empty. E.g., an empty `String`, `Vec`, `HashMap`, etc.
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
extern crate alloc;
use alloc::string::String;

use serde_json::{Map, Value};

use super::IsEmpty;

impl IsEmpty for Map<String, Value> {
    fn is_empty(&self) -> bool {
        Map::is_empty(self)
    }
}