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 for Comment<'a>
impl<'a> PartialEq for Comment<'a>
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
source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§default unsafe fn clone_to_uninit(&self, dst: *mut T)
default unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)