Trait gix_object::HeaderExt

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

An extension trait with convenience functions.

Provided Methods§

source

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

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

Implementors§