pub struct CsvSource { /* private fields */ }Expand description
CSV Data source. Contains location of data file, and computes CSV metadata. Can be turned into
CsvReader object.
Implementations§
Source§impl CsvSource
impl CsvSource
Sourcepub fn new<L: Into<FileLocator>>(loc: L) -> Result<CsvSource>
pub fn new<L: Into<FileLocator>>(loc: L) -> Result<CsvSource>
Create a new CsvSource object with provided file location. This constructor will analyze
(sniff) the file to detect its metadata (delimiter, quote character, preamble, etc.)
§Error
Fails if unable to open the file at the provided location, or if CSV analysis fails.
Trait Implementations§
Auto Trait Implementations§
impl !Freeze for CsvSource
impl RefUnwindSafe for CsvSource
impl Send for CsvSource
impl Sync for CsvSource
impl Unpin for CsvSource
impl UnwindSafe for CsvSource
Blanket Implementations§
Source§impl<Frames> AssocDataIndexCons<Nil> for Frames
impl<Frames> AssocDataIndexCons<Nil> for Frames
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<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 moreSource§impl<T> IntoLabeled for T
impl<T> IntoLabeled for T
Source§impl<Frames, Store> JoinIntoStore<Nil, Store> for Frames
impl<Frames, Store> JoinIntoStore<Nil, Store> for Frames
Source§fn join_into_store(
&self,
store: Store,
_permutation: &[usize],
) -> Result<Store, AgnesError>
fn join_into_store( &self, store: Store, _permutation: &[usize], ) -> Result<Store, AgnesError>
Augments
store with data from self (as specified with Labels), using the provided
permutation indices.