Trait gix_odb::HeaderExt

source ·
pub trait HeaderExt: Header {
    // Provided method
    fn header(&self, id: impl AsRef<oid>) -> Result<Header, Error> { ... }
}
Expand description

An extension trait with convenience functions.

Provided Methods§

source

fn header(&self, id: impl AsRef<oid>) -> Result<Header, Error>

Like try_header(…), but flattens the Result<Option<_>> into a single Result making a non-existing object an error.

Implementors§

source§

impl<T: Header> HeaderExt for T