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§
Required Methods§
sourcefn into_option(self) -> Option<Self::Item>
fn into_option(self) -> Option<Self::Item>
Converts self
into an Option
.