Struct git2::Mailmap [−][src]
pub struct Mailmap { /* fields omitted */ }
A structure to represent a repository’s .mailmap file.
The representation cannot be written to disk.
Implementations
impl Mailmap
[src]
pub fn new() -> Result<Mailmap, Error>
[src]
Creates an empty, in-memory mailmap object.
pub fn from_buffer(buf: &str) -> Result<Mailmap, Error>
[src]
Creates an in-memory mailmap object representing the given buffer.
pub fn add_entry(
&mut self,
real_name: Option<&str>,
real_email: Option<&str>,
replace_name: Option<&str>,
replace_email: &str
) -> Result<(), Error>
[src]
&mut self,
real_name: Option<&str>,
real_email: Option<&str>,
replace_name: Option<&str>,
replace_email: &str
) -> Result<(), Error>
Adds a new entry to this in-memory mailmap object.
pub fn resolve_signature(
&self,
sig: &Signature<'_>
) -> Result<Signature<'static>, Error>
[src]
&self,
sig: &Signature<'_>
) -> Result<Signature<'static>, Error>
Resolves a signature to its real name and email address.
Trait Implementations
Auto Trait Implementations
impl RefUnwindSafe for Mailmap
impl !Send for Mailmap
impl !Sync for Mailmap
impl Unpin for Mailmap
impl UnwindSafe for Mailmap
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
pub fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
pub fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,