Enum mit_commit::Fragment
source · pub enum Fragment<'a> {
Body(Body<'a>),
Comment(Comment<'a>),
}
Expand description
A Fragment
from the [CommitMessage
], either a comment or body
Variants§
Body(Body<'a>)
A fragment that is going to appear in the git log
Comment(Comment<'a>)
A fragment that is a comment
Trait Implementations§
source§impl<'a> PartialEq<Fragment<'a>> for Fragment<'a>
impl<'a> PartialEq<Fragment<'a>> for Fragment<'a>
impl<'a> Eq for Fragment<'a>
impl<'a> StructuralEq for Fragment<'a>
impl<'a> StructuralPartialEq for Fragment<'a>
Auto Trait Implementations§
impl<'a> RefUnwindSafe for Fragment<'a>
impl<'a> Send for Fragment<'a>
impl<'a> Sync for Fragment<'a>
impl<'a> Unpin for Fragment<'a>
impl<'a> UnwindSafe for Fragment<'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