pub struct Dialect { /* private fields */ }
Expand description
A dialect represents the variations in how this record/field format can be encoded.
Implementations§
Source§impl Dialect
impl Dialect
pub const fn new( line_separators: &'static str, field_separators: &'static str, comment_chars: &'static str, ) -> Dialect
Sourcepub const fn get_line_separators(&self) -> &str
pub const fn get_line_separators(&self) -> &str
Returns the line/record separator for this tokenizer type Defaults to “\n”
Sourcepub const fn get_field_separators(&self) -> &str
pub const fn get_field_separators(&self) -> &str
Returns the field separator for this tokenizer type, Defaults to “,”
Sourcepub const fn get_comment_chars(&self) -> &str
pub const fn get_comment_chars(&self) -> &str
Returns the optional comment character for this tokenizer type,
Defaults to None
Trait Implementations§
impl Copy for Dialect
impl Eq for Dialect
impl StructuralPartialEq for Dialect
Auto Trait Implementations§
impl Freeze for Dialect
impl RefUnwindSafe for Dialect
impl Send for Dialect
impl Sync for Dialect
impl Unpin for Dialect
impl UnwindSafe for Dialect
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more