pub struct SimpleMatcher { /* private fields */ }
Expand description
Simple keyword-based matcher that loads keywords from JSON
Implementations§
Source§impl SimpleMatcher
impl SimpleMatcher
Trait Implementations§
Source§impl Default for SimpleMatcher
impl Default for SimpleMatcher
Source§impl GitmojiMatcher for SimpleMatcher
impl GitmojiMatcher for SimpleMatcher
Source§fn match_emoji(&self, message: &str) -> Result<MatcherResult>
fn match_emoji(&self, message: &str) -> Result<MatcherResult>
Match a commit message to an appropriate gitmoji
Returns (emoji_code, formatted_message) or None
Auto Trait Implementations§
impl Freeze for SimpleMatcher
impl RefUnwindSafe for SimpleMatcher
impl Send for SimpleMatcher
impl Sync for SimpleMatcher
impl Unpin for SimpleMatcher
impl UnwindSafe for SimpleMatcher
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