IntoDocComment

Trait IntoDocComment 

Source
pub trait IntoDocComment {
    // Required method
    fn into_doc_comment(self) -> Option<Cow<'static, str>>;
}
Expand description

Helper that converts multiple different types into an Option<Cow<'static, str>>

Required Methods§

Source

fn into_doc_comment(self) -> Option<Cow<'static, str>>

Implementations on Foreign Types§

Source§

impl IntoDocComment for &str

Source§

fn into_doc_comment(self) -> Option<Cow<'static, str>>

Source§

impl IntoDocComment for Option<String>

Source§

fn into_doc_comment(self) -> Option<Cow<'static, str>>

Source§

impl IntoDocComment for ()

Source§

fn into_doc_comment(self) -> Option<Cow<'static, str>>

Source§

impl IntoDocComment for String

Source§

fn into_doc_comment(self) -> Option<Cow<'static, str>>

Implementors§