Trait OptionExt

Source
pub trait OptionExt {
    type Item;

    // Required methods
    fn unwrap_ref(&self) -> &Self::Item;
    fn unwrap_mut(&mut self) -> &mut Self::Item;
}

Required Associated Types§

Required Methods§

Source

fn unwrap_ref(&self) -> &Self::Item

Source

fn unwrap_mut(&mut self) -> &mut Self::Item

Implementations on Foreign Types§

Source§

impl<T> OptionExt for Option<T>

Source§

type Item = T

Source§

fn unwrap_ref(&self) -> &T

Source§

fn unwrap_mut(&mut self) -> &mut T

Implementors§