Struct mit_commit::Comment [−][src]
pub struct Comment { /* fields omitted */ }
Expand description
A single comment from a CommitMessage
Implementations
Append one comment onto another
This is for concatenating multiple comments together
Example
use indoc::indoc; use mit_commit::Comment; assert_eq!( Comment::from(indoc!( " Example 1 Example 2" )), Comment::from("Example 1").append(&Comment::from("Example 2")) )
Trait Implementations
Auto Trait Implementations
impl RefUnwindSafe for Comment
impl UnwindSafe for Comment
Blanket Implementations
Mutably borrows from an owned value. Read more