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::HashMaps. 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.

Required Methods§

Implementations on Foreign Types§

source§

impl<T> OptionExt for Option<T>

Implementors§