Struct amadeus::source::Csv[][src]

pub struct Csv<File, Row> where
    File: File,
    Row: SerdeData
{ /* fields omitted */ }

Implementations

impl<F, Row> Csv<F, Row> where
    F: File,
    Row: SerdeData
[src]

pub async fn new(file: F) -> Result<Csv<F, Row>, <Csv<F, Row> as Source>::Error>[src]

Trait Implementations

impl<File, Row> Clone for Csv<File, Row> where
    File: File,
    Row: SerdeData
[src]

pub fn clone(&self) -> Csv<File, Row>[src]

Returns a copy of the value. Read more

pub fn clone_from(&mut self, _source: &Csv<File, Row>)[src]

Performs copy-assignment from source. Read more

impl<File, Row> Debug for Csv<File, Row> where
    File: File,
    Row: SerdeData
[src]

pub fn fmt(&self, formatter: &mut Formatter<'_>) -> Result<(), Error>[src]

Formats the value using the given formatter. Read more

impl<F, Row> Source for Csv<F, Row> where
    F: File,
    Row: SerdeData
[src]

type Item = Row

type Error = CsvError<<F as File>::Error, <<F as File>::Partition as Partition>::Error, <<<F as File>::Partition as Partition>::Page as Page>::Error>

type ParStream = DistParStream<<Csv<F, Row> as Source>::DistStream>

type DistStream = impl DistributedStream<Item = Result<<Csv<F, Row> as Source>::Item, <Csv<F, Row> as Source>::Error>>

pub fn par_stream(self) -> <Csv<F, Row> as Source>::ParStream[src]

pub fn dist_stream(self) -> <Csv<F, Row> as Source>::DistStream[src]

impl<File, Row> Source for Csv<File, Row> where
    File: File,
    Row: Data
[src]

type Item = Self::Item

type Error = Self::Error

type ParStream = Self::ParStream

type DistStream = Self::DistStream

fn par_stream(self) -> Self::ParStream[src]

fn dist_stream(self) -> Self::DistStream[src]

Auto Trait Implementations

impl<File, Row> RefUnwindSafe for Csv<File, Row> where
    <File as File>::Partition: RefUnwindSafe

impl<File, Row> Send for Csv<File, Row>

impl<File, Row> Sync for Csv<File, Row> where
    <File as File>::Partition: Sync

impl<File, Row> Unpin for Csv<File, Row> where
    <File as File>::Partition: Unpin

impl<File, Row> UnwindSafe for Csv<File, Row> where
    <File as File>::Partition: UnwindSafe

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

pub fn type_id(&self) -> TypeId[src]

Gets the TypeId of self. Read more

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

pub fn borrow(&self) -> &T[src]

Immutably borrows from an owned value. Read more

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

pub fn borrow_mut(&mut self) -> &mut T[src]

Mutably borrows from an owned value. Read more

impl<A, B> Downcast<A> for B where
    A: DowncastFrom<B>, 
[src]

pub fn downcast(self) -> Result<A, DowncastError>[src]

impl<T> From<T> for T[src]

pub fn from(t: T) -> T[src]

Performs the conversion.

impl<T> Instrument for T[src]

fn instrument(self, span: Span) -> Instrumented<Self>[src]

Instruments this type with the provided Span, returning an Instrumented wrapper. Read more

fn in_current_span(self) -> Instrumented<Self>[src]

Instruments this type with the current Span, returning an Instrumented wrapper. Read more

impl<T> Instrument for T[src]

fn instrument(self, span: Span) -> Instrumented<Self>[src]

Instruments this type with the provided Span, returning an Instrumented wrapper. Read more

fn in_current_span(self) -> Instrumented<Self>[src]

Instruments this type with the current Span, returning an Instrumented wrapper. Read more

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

pub fn into(self) -> U[src]

Performs the conversion.

impl<T> Same<T> for T

type Output = T

Should always be Self

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

pub fn to_owned(&self) -> T[src]

Creates owned data from borrowed data, usually by cloning. Read more

pub fn clone_into(&self, target: &mut T)[src]

🔬 This is a nightly-only experimental API. (toowned_clone_into)

recently added

Uses borrowed data to replace owned data, usually by cloning. Read more

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

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

Performs the conversion.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

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

The type returned in the event of a conversion error.

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

Performs the conversion.

impl<T> Type for T where
    T: ?Sized
[src]

pub default fn meta(self: *const T) -> <T as Type>::Meta[src]

Retrieve TraitObject, Slice or Concrete meta data respectively for a type

pub default fn data(self: *const T) -> *const ()[src]

Retrieve pointer to the data

pub default fn data_mut(self: *mut T) -> *mut ()[src]

Retrieve mut pointer to the data

pub default fn dangling(t: <T as Type>::Meta) -> NonNull<T>[src]

Create a dangling non-null *const Self with the provided Self::Meta.

pub default fn fatten(thin: *mut (), t: <T as Type>::Meta) -> *mut T[src]

Create a *mut Self with the provided Self::Meta.

const METATYPE: MetaType[src]

Enum describing whether a type is TraitObject, Slice or Concrete.

type Meta: 'static

Type of metadata for type.

fn meta_type(self: *const Self) -> MetaType[src]

Helper method describing whether a type is TraitObject, Slice or Concrete.

impl<T> Type for T[src]

pub const METATYPE: MetaType[src]

Enum describing whether a type is TraitObject, Slice or Concrete.

type Meta = Concrete

Type of metadata for type.

pub fn meta(self: *const T) -> <T as Type>::Meta[src]

Retrieve TraitObject, Slice or Concrete meta data respectively for a type

pub fn data(self: *const T) -> *const ()[src]

Retrieve pointer to the data

pub fn data_mut(self: *mut T) -> *mut ()[src]

Retrieve mut pointer to the data

pub fn dangling(_t: <T as Type>::Meta) -> NonNull<T>[src]

Create a dangling non-null *const Self with the provided Self::Meta.

pub fn fatten(thin: *mut (), _t: <T as Type>::Meta) -> *mut T[src]

Create a *mut Self with the provided Self::Meta.

fn meta_type(self: *const Self) -> MetaType[src]

Helper method describing whether a type is TraitObject, Slice or Concrete.

impl<V, T> VZip<V> for T where
    V: MultiLane<T>, 

pub fn vzip(self) -> V