Whitespace in sqlparser::tokenizer - Rust

Skip to main content

pub enum Whitespace {
    Space,
    Newline,
    Tab,
    SingleLineComment {
        comment: String,
        prefix: String,
    },
    MultiLineComment(String),
}
Expand description

Represents whitespace in the input: spaces, newlines, tabs and comments.

Variants§

§

Space

A single space character.

§

Newline

A newline character.

§

Tab

A tab character.

§

SingleLineComment

A single-line comment (e.g. -- comment or # comment). The comment field contains the text, and prefix contains the comment prefix.

§

MultiLineComment(String)

A multi-line comment (without the /* ... */ delimiters).

Trait Implementations§

Auto Trait Implementations§

§

impl Freeze for Whitespace

§

impl RefUnwindSafe for Whitespace

§

impl Send for Whitespace

§

impl Sync for Whitespace

§

impl Unpin for Whitespace

§

impl UnwindSafe for Whitespace

Blanket Implementations§