Trait gat_lending_iterator::OptionTrait

source ·
pub trait OptionTrait {
    type Item;

    // Required method
    fn into_option(self) -> Option<Self::Item>;
}
Expand description

Used in cases that a function needs to return an Option who’s lifetime is tied to the input.

Required Associated Types§

source

type Item

The type of the item in the option.

Required Methods§

source

fn into_option(self) -> Option<Self::Item>

Converts self into an Option.

Implementations on Foreign Types§

source§

impl<T> OptionTrait for Option<T>

source§

type Item = T

source§

fn into_option(self) -> Option<Self::Item>

Implementors§