pub trait IntoOptionalGStr {
    // Required method
    fn run_with_gstr<T, F: FnOnce(Option<&GStr>) -> T>(self, f: F) -> T;
}
Expand description

A trait to accept both Option<&str> or Option<&GStr> as an argument.

Required Methods§

source

fn run_with_gstr<T, F: FnOnce(Option<&GStr>) -> T>(self, f: F) -> T

Object Safety§

This trait is not object safe.

Implementations on Foreign Types§

source§

impl<S: IntoGStr> IntoOptionalGStr for Option<S>

source§

fn run_with_gstr<T, F: FnOnce(Option<&GStr>) -> T>(self, f: F) -> T

Implementors§