pub struct Comment<'a> { /* private fields */ }
Expand description
A single comment from a CommitMessage
Implementations§
Source§impl<'a> Comment<'a>
impl<'a> Comment<'a>
Sourcepub fn is_legal_comment_char(character: char) -> bool
pub fn is_legal_comment_char(character: char) -> bool
Tells you if a given comment character is a potential comment character
§Example
use mit_commit::Comment;
assert!(!Comment::is_legal_comment_char('?'),);
assert!(Comment::is_legal_comment_char('#'),);
Trait Implementations§
impl<'a> Eq for Comment<'a>
impl<'a> StructuralPartialEq for Comment<'a>
Auto Trait Implementations§
impl<'a> Freeze for Comment<'a>
impl<'a> RefUnwindSafe for Comment<'a>
impl<'a> Send for Comment<'a>
impl<'a> Sync for Comment<'a>
impl<'a> Unpin for Comment<'a>
impl<'a> UnwindSafe for Comment<'a>
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