Trait maelstrom_util::ext::OptionExt
source · pub trait OptionExt {
// Required methods
fn assert_is_none(self);
fn assert_is_some(self);
}
Expand description
An extension trait that is useful for working with std::collections::HashMap
s. A lot of
times we just want to assert whether or not something previously existed in the
std::collections::HashMap
. This provides a convenient way to do that.