OptionEntry

Trait OptionEntry 

Source
pub trait OptionEntry: Sealed {
    type T;

    // Required method
    fn entry(&mut self) -> Entry<'_, Self::T>;
}
Expand description

Extension trait for viewing Option as Entry.

Required Associated Types§

Source

type T

T in Option<T>.

Required Methods§

Source

fn entry(&mut self) -> Entry<'_, Self::T>

View the current Option as an Entry, primarily for OccupiedEntry::remove.

Implementations on Foreign Types§

Source§

impl<T> OptionEntry for Option<T>

Source§

type T = T

Source§

fn entry(&mut self) -> Entry<'_, Self::T>

Implementors§