Struct tfrecord::RecordReaderInit[][src]

pub struct RecordReaderInit {
    pub check_integrity: bool,
}

The reader initializer.

Fields

check_integrity: bool

Implementations

impl RecordReaderInit[src]

pub fn from_reader<T, R>(self, reader: R) -> Result<RecordReader<T, R>, Error> where
    T: GenericRecord,
    R: Read
[src]

Construct a RecordReader from a type implementing Read.

pub fn open<T, P>(
    self,
    path: P
) -> Result<RecordReader<T, BufReader<File>>, Error> where
    T: GenericRecord,
    P: AsRef<Path>, 
[src]

Construct a RecordReader from a path.

Trait Implementations

impl Clone for RecordReaderInit[src]

impl Debug for RecordReaderInit[src]

impl Default for RecordReaderInit[src]

impl Eq for RecordReaderInit[src]

impl Hash for RecordReaderInit[src]

impl PartialEq<RecordReaderInit> for RecordReaderInit[src]

impl StructuralEq for RecordReaderInit[src]

impl StructuralPartialEq for RecordReaderInit[src]

Auto Trait Implementations

Blanket Implementations

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

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

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

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

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

impl<T> Pointable for T

type Init = T

The type for initializers.

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

type Owned = T

The resulting type after obtaining ownership.

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<V, T> VZip<V> for T where
    V: MultiLane<T>,