Crate option_entry

Crate option_entry 

Source
Expand description

Entry for Options.

See OccupiedEntry::remove for why.

Docs and interface are based on btree_map::Entry.

Structs§

OccupiedEntry
Some
VacantEntry
None

Enums§

Entry
&mut Option<T> with strongly typed context of whether it’s None or Some which provides methods like OccupiedEntry::remove.

Traits§

OptionEntry
Extension trait for viewing Option as Entry.