Struct mit_commit::Comment
source · 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§
source§impl<'a> PartialEq<Comment<'a>> for Comment<'a>
impl<'a> PartialEq<Comment<'a>> for Comment<'a>
impl<'a> Eq for Comment<'a>
impl<'a> StructuralEq for Comment<'a>
impl<'a> StructuralPartialEq for Comment<'a>
Auto Trait Implementations§
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