[][src]Trait sit_core::record::Record

pub trait Record {
    type Read: Read;
    type Hash: AsRef<[u8]>;
    type Str: AsRef<str>;
    type Iter: Iterator<Item = (Self::Str, Self::Read)>;
    fn hash(&self) -> Self::Hash;
fn encoded_hash(&self) -> Self::Str;
fn item_id(&self) -> Self::Str;
fn file_iter(&self) -> Self::Iter; }

Record is an immutable collection of files

Associated Types

Implementation's type for reading files

Implementation's type for non-encoded hash

Implementation's type for file names

Implementation's iterator type for listing files

Required Methods

Returns record hash

Returns encoded record hash

The encoding is defined by its container (typically, the repository) and is intended to be human-readable and it MUST be an encoding of the byte array returned by hash

Returns enclosing item's ID

Returns an iterator over files in the record

Implementors

impl<'a> Record for Record<'a>
[src]