gix_object

Trait 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§