Trait AsStr

Source
pub trait AsStr {
    // Required method
    fn as_str_or(&self, default: &'static str) -> &str;
}

Required Methods§

Source

fn as_str_or(&self, default: &'static str) -> &str

Implementations on Foreign Types§

Source§

impl<T: AsRef<str>> AsStr for Option<T>

Source§

fn as_str_or(&self, default: &'static str) -> &str

Implementors§