Struct git_object::commit::ExtraHeaders[][src]

pub struct ExtraHeaders<I> { /* fields omitted */ }

An iterator over extra headers in owned and borrowed commits.

Implementations

impl<'a, I> ExtraHeaders<I> where
    I: Iterator<Item = (&'a BStr, &'a BStr)>, 
[src]

Instantiation and convenience.

pub fn new(iter: I) -> Self[src]

Create a new instance from an iterator over tuples of (name, value) pairs.

pub fn find(self, name: &str) -> Option<&'a BStr>[src]

Find the value of the first header with the given name.

pub fn find_all(self, name: &'a str) -> impl Iterator<Item = &'a BStr>[src]

Return an iterator over all values of headers with the given name.

pub fn mergetags(self) -> impl Iterator<Item = Result<Tag<'a>, Error>>[src]

Return an iterator over all git mergetags.

A merge tag is a tag object embedded within the respective header field of a commit, making it a child object of sorts.

pub fn pgp_signature(self) -> Option<&'a BStr>[src]

Return the cryptographic signature provided by gpg/pgp verbatim.

Auto Trait Implementations

impl<I> RefUnwindSafe for ExtraHeaders<I> where
    I: RefUnwindSafe

impl<I> Send for ExtraHeaders<I> where
    I: Send

impl<I> Sync for ExtraHeaders<I> where
    I: Sync

impl<I> Unpin for ExtraHeaders<I> where
    I: Unpin

impl<I> UnwindSafe for ExtraHeaders<I> where
    I: UnwindSafe

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> Conv for T

impl<T> Conv for T

impl<T> FmtForward for T

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> Pipe for T where
    T: ?Sized

impl<T> Pipe for T

impl<T> PipeAsRef for T

impl<T> PipeBorrow for T

impl<T> PipeDeref for T

impl<T> PipeRef for T

impl<T> Tap for T

impl<T> Tap for T

impl<T, U> TapAsRef<U> for T where
    U: ?Sized

impl<T, U> TapBorrow<U> for T where
    U: ?Sized

impl<T> TapDeref for T

impl<T> TryConv for T

impl<T> TryConv for T

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.