pub struct MailmapTable { /* private fields */ }Expand description
Parsed mailmap as a lookup table (Git string_list + nested namemap).
Implementations§
Source§impl MailmapTable
impl MailmapTable
Sourcepub fn map_user(&self, name: String, email: String) -> (String, String)
pub fn map_user(&self, name: String, email: String) -> (String, String)
Apply mailmap to a name/email pair (both may be empty strings).
Returns (mapped_name, mapped_email) after applying the same rules as Git’s map_user.
Sourcepub fn map_user_str(&self, name: &str, email: &str) -> (String, String)
pub fn map_user_str(&self, name: &str, email: &str) -> (String, String)
Like Self::map_user but takes string slices (avoids cloning when nothing matches).
Trait Implementations§
Source§impl Clone for MailmapTable
impl Clone for MailmapTable
Source§impl Debug for MailmapTable
impl Debug for MailmapTable
Auto Trait Implementations§
impl Freeze for MailmapTable
impl RefUnwindSafe for MailmapTable
impl Send for MailmapTable
impl Sync for MailmapTable
impl Unpin for MailmapTable
impl UnsafeUnpin for MailmapTable
impl UnwindSafe for MailmapTable
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