forge_fmt::comments

Trait CommentStringExt

Source
pub trait CommentStringExt {
    // Required method
    fn comment_state_char_indices(&self) -> CommentStateCharIndices<'_> ;

    // Provided methods
    fn non_comment_chars(&self) -> NonCommentChars<'_>  { ... }
    fn trim_comments(&self) -> String { ... }
}
Expand description

Helpers for iterating over comment containing strings

Required Methods§

Provided Methods§

Implementations on Foreign Types§

Source§

impl CommentStringExt for str

Implementors§

Source§

impl<T> CommentStringExt for T
where T: AsRef<str>,