pub struct AdvReaderOptions {
Show 15 fields pub path: PathBuf, pub buffer_size: usize, pub trim: bool, pub line_end: u8, pub skip_comments: bool, pub encode_comments: bool, pub encode_strings: bool, pub encoder: Option<String>, pub allow_invalid_utf8: bool, pub extended_word_separation: bool, pub double_quote_escape: bool, pub convert2numbers: bool, pub keep_base: bool, pub bool_false: Option<Vec<u8>>, pub bool_true: Option<Vec<u8>>,
}

Fields§

§path: PathBuf§buffer_size: usize§trim: bool§line_end: u8§skip_comments: bool§encode_comments: bool

Convert (Line) Comments into UTF8

§encode_strings: bool

Convert Strings into UTF8

§encoder: Option<String>

Optional encoder for converting strings into UTF8

§allow_invalid_utf8: bool

Allow invalid UTF8 characters.

§extended_word_separation: bool

Valid characters for word: 0-9a-zA-Z_.

§double_quote_escape: bool

Special support for escaping double quote is: “”

§convert2numbers: bool

Convert text to numbers (int, float)

§keep_base: bool

Keep base of number

§bool_false: Option<Vec<u8>>

If defined boolean False detection is enabled.

§bool_true: Option<Vec<u8>>

If defined boolean True detection is enabled.

Implementations§

source§

impl AdvReaderOptions

source

pub fn new(path: &Path, encoder: Option<String>) -> Self

Trait Implementations§

source§

impl Debug for AdvReaderOptions

source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more

Auto Trait Implementations§

Blanket Implementations§

source§

impl<T> Any for T
where T: 'static + ?Sized,

source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
source§

impl<T> Borrow<T> for T
where T: ?Sized,

source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
source§

impl<T> From<T> for T

source§

fn from(t: T) -> T

Returns the argument unchanged.

source§

impl<T, U> Into<U> for T
where U: From<T>,

source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

§

type Error = Infallible

The type returned in the event of a conversion error.
source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.