pub struct ExtraHeaders<I> { /* private fields */ }
Implementations§
source§impl<'a, I> ExtraHeaders<I>
impl<'a, I> ExtraHeaders<I>
Instantiation and convenience.
sourcepub fn new(iter: I) -> Self
pub fn new(iter: I) -> Self
Create a new instance from an iterator over tuples of (name, value) pairs.
sourcepub fn find(self, name: &str) -> Option<&'a BStr>
pub fn find(self, name: &str) -> Option<&'a BStr>
Find the value of the first header with the given name
.
sourcepub fn find_all(self, name: &'a str) -> impl Iterator<Item = &'a BStr>
pub fn find_all(self, name: &'a str) -> impl Iterator<Item = &'a BStr>
Return an iterator over all values of headers with the given name
.
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.
sourcepub fn pgp_signature(self) -> Option<&'a BStr>
pub fn pgp_signature(self) -> Option<&'a BStr>
Return the cryptographic signature provided by gpg/pgp verbatim.
Auto Trait Implementations§
impl<I> Freeze for ExtraHeaders<I>where
I: Freeze,
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§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more