use std::collections::{HashMap, HashSet}; use caretta_core::utils::emptiable::Emptiable; use caretta_macros::Emptiable; #[derive(Debug, PartialEq, Emptiable)] struct EmptiableStruct{ vec: Vec, text: String, map: HashMap, set: HashSet, opt: Option, } #[cfg(test)] fn test() { use std::hash::Hash; let empty = EmptiableStruct::empty(); assert_eq!(&empty, &EmptiableStruct{ vec: Vec::new(), text: String::new(), map: HashMap::new(), set: HashSet::new(), opt: None, }) }