pub struct Mailmap { /* private fields */ }
Expand description

A structure to represent a repository’s .mailmap file.

The representation cannot be written to disk.

Implementations

Creates an empty, in-memory mailmap object.

Creates an in-memory mailmap object representing the given buffer.

source

pub fn add_entry(
    &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.

Resolves a signature to its real name and email address.

Trait Implementations

Executes the destructor for this type. Read more

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Returns the argument unchanged.

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.