pub trait JmapCacheState: Sync + Send {
// Required method
fn get_state(&self, is_container: bool) -> State;
// Provided method
fn assert_state(
&self,
is_container: bool,
if_in_state: &Option<State>,
) -> Result<State> { ... }
}