pub trait OptionToString {
    // Required method
    fn to_string(&self) -> String;
}
Expand description

Option转String

Required Methods§

source

fn to_string(&self) -> String

转为String

Implementations on Foreign Types§

source§

impl<T> OptionToString for Option<T>where T: Default + ToString,

Implementors§