#[non_exhaustive]pub enum Trim {
None,
Headers,
Fields,
All,
}
Expand description
The whitespace preservation behavior when reading CSV data.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
None
Preserves fields and headers. This is the default.
Headers
Trim whitespace from headers.
Fields
Trim whitespace from fields, but not headers.
All
Trim whitespace from fields and headers.
Trait Implementations§
source§impl PartialEq for Trim
impl PartialEq for Trim
impl Copy for Trim
impl StructuralPartialEq for Trim
Auto Trait Implementations§
impl RefUnwindSafe for Trim
impl Send for Trim
impl Sync for Trim
impl Unpin for Trim
impl UnwindSafe for Trim
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