Skip to main content

Odb

Trait Odb 

Source
pub trait Odb {
    // Required method
    fn read(&self, oid: &Oid) -> Option<(Kind, Vec<u8>)>;
}
Expand description

object database の読み出し抽象。pack、loose object、メモリ上のストア等が実装する。

Required Methods§

Source

fn read(&self, oid: &Oid) -> Option<(Kind, Vec<u8>)>

oid に対応する object の種別と内容 (header を除いた body) を返す。 存在しない場合は None。

Implementors§

Source§

impl Odb for Pack<'_>