[][src]Struct amadeus_serde::Json

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

Methods

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

pub fn new(file: F) -> Result<Self, JsonError<F>>[src]

Trait Implementations

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

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

type Item = Row

type Error = JsonError<F>

type DistIter = FlatMap<IterIter<IntoIter<<F as File>::Partition>>, FnMut<(), fn'r(_: &'r mut (), _: (<F as File>::Partition,)) -> Map<FlatMap<ResultExpandIter<IntoIter<<<F as File>::Partition as Partition>::Page>, JsonError<F>>, ResultExpand<Map<StreamDeserializer<'static, IoRead<BufReader<Reader<<<F as File>::Partition as Partition>::Page>>>, SerdeDeserialize<Self::Item>>, FnMut<(), fn'r(_: &'r mut (), _: (Result<SerdeDeserialize<Self::Item>, SerdeJsonError>,)) -> Result<Self::Item, SerdeJsonError>>>, JsonError<F>>, FnMut<(), fn'r(_: &'r mut (), _: (Result<<<F as File>::Partition as Partition>::Page, JsonError<F>>,)) -> ResultExpand<Map<StreamDeserializer<'static, IoRead<BufReader<Reader<<<F as File>::Partition as Partition>::Page>>>, SerdeDeserialize<Self::Item>>, FnMut<(), fn'r(_: &'r mut (), _: (Result<SerdeDeserialize<Self::Item>, SerdeJsonError>,)) -> Result<Self::Item, SerdeJsonError>>>, JsonError<F>>>>, FnMut<(), fn'r(_: &'r mut (), _: (Result<Result<Self::Item, SerdeJsonError>, JsonError<F>>,)) -> Result<Self::Item, JsonError<F>>>>>>

type Iter = Empty<Result<Self::Item, Self::Error>>

Auto Trait Implementations

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

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

impl<File, Row> Send for Json<File, Row> where
    <File as File>::Partition: Send

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

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

Blanket Implementations

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

type Owned = T

The resulting type after obtaining ownership.

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

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

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.

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.

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

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

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

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

impl<T> Same<T> for T

type Output = T

Should always be Self

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

impl<T> FromBits<T> for T

impl<T, U> Cast<U> for T where
    U: FromCast<T>, 

impl<T> FromCast<T> for T

impl<T, U> IntoBits<U> for T where
    U: FromBits<T>, 

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