[][src]Trait sit_core::record::File

pub trait File {
    type Read: Read;
    fn name(&self) -> &str;
fn read(&mut self) -> &mut Self::Read;
fn into_read(self) -> Self::Read; }

Record's file

This trait represent an abstraction of a file: something that has a name and binary content to read.

Associated Types

Associated Read type

Required Methods

Returns file's name

Returns a mutable reference to Self::Read

Consumes itself and returns Self::Read

Implementations on Foreign Types

impl<S, R> File for (S, R) where
    S: AsRef<str>,
    R: Read
[src]

Implementors