left_trim_comment_line in rustfmt_nightly::comment - Rust
Description: Trims comment characters and possibly a single space from the left of a string. Does not trim all whitespace. If a single space is trimmed from the left of the string, this function returns true.

Skip to main content

## left_trim_comment_line

# Function left_trim_comment_line

Source

    fn left_trim_comment_line<'a>(
        line: &'a str,
        style: &CommentStyle<'_>,
    ) -> (&'a str, bool)

Expand description

Trims comment characters and possibly a single space from the left of a string. Does not trim all whitespace. If a single space is trimmed from the left of the string, this function returns true.