pub enum Format {
Csv,
Tsv,
Ndjson,
Json,
Parquet,
Arrow,
}Expand description
The input formats the text normalizer understands.
Variants§
Csv
Tsv
Ndjson
Newline-delimited JSON (one JSON value per line).
Json
A single JSON document (array of objects, object, or array of scalars).
Parquet
Apache Parquet (binary columnar). Requires the polars feature to read.
Arrow
Apache Arrow IPC / Feather file (binary columnar). Requires polars.
Implementations§
Source§impl Format
impl Format
Sourcepub fn is_binary(self) -> bool
pub fn is_binary(self) -> bool
Whether this format is binary columnar (read via the Polars backbone).
Sourcepub fn from_extension(path: &str) -> Option<Format>
pub fn from_extension(path: &str) -> Option<Format>
Picks a format from a file extension, if recognized.
Trait Implementations§
impl Copy for Format
impl Eq for Format
impl StructuralPartialEq for Format
Auto Trait Implementations§
impl Freeze for Format
impl RefUnwindSafe for Format
impl Send for Format
impl Sync for Format
impl Unpin for Format
impl UnsafeUnpin for Format
impl UnwindSafe for Format
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more