pub enum FileDelimiter {
Comma,
Tab,
Pipe,
Semicolon,
Fs,
Gs,
Rs,
Us,
Literal(char),
}Expand description
The character between a delimited file’s fields — one of the eight a design names with a word, or any other single ASCII character.
The words are comma, tab, pipe, semicolon, and the four ASCII
separators fs, gs, rs and us (bytes 0x1C to 0x1F). A character
one of the words names always arrives as that word, never as
FileDelimiter::Literal.
Variants§
Comma
,
Tab
The tab character.
Pipe
|
Semicolon
;
Fs
The file separator, 0x1C.
Gs
The group separator, 0x1D.
Rs
The record separator, 0x1E.
Us
The unit separator, 0x1F.
Literal(char)
Any other single ASCII character, written as itself.
Implementations§
Source§impl FileDelimiter
impl FileDelimiter
Sourcepub const fn as_byte(self) -> u8
pub const fn as_byte(self) -> u8
The character as the one byte a reader splits on. Every delimiter a design can declare is ASCII.
Sourcepub const fn word(self) -> Option<&'static str>
pub const fn word(self) -> Option<&'static str>
The word a design writes for this delimiter, or None for a literal.
Sourcepub const fn is_control(self) -> bool
pub const fn is_control(self) -> bool
Whether this is one of the four ASCII separators, 0x1C to
0x1F — the delimiters no text editor shows, which an engine’s
statement names, if at all, by an escape of its own.