std.csv.Separator
Valuetype pub copy enum SeparatorA type describing the column separator.
Constructors
Comma
Comma()Columns are separated using a comma (",").
Semicolon
Semicolon()Columns are separated using a semicolon (";").
Tab
Tab()Columns are separated using a tab ("\t").
Instance methods
to_int
Show source codeHide source code
fn pub to_int -> Int {
match self {
case Comma -> COMMA
case Semicolon -> 0x3B
case Tab -> 0x9
}
}fn pub to_int -> IntConverts self to a Int
to_string
Show source codeHide source code
fn pub to_string -> String {
match self {
case Comma -> ','
case Semicolon -> ';'
case Tab -> '\t'
}
}fn pub to_string -> StringConverts self to a String.
Implemented traits
ToInt
impl ToInt for SeparatorToString
impl ToString for Separator