Struct git_conventional::Footer
source · [−]pub struct Footer<'a> { /* private fields */ }
Expand description
A single footer.
A footer is similar to a Git trailer, with the exception of not requiring whitespace before newlines.
Implementations
sourcepub const fn new(
token: FooterToken<'a>,
sep: FooterSeparator,
value: &'a str
) -> Self
pub const fn new(
token: FooterToken<'a>,
sep: FooterSeparator,
value: &'a str
) -> Self
Piece together a footer.
sourcepub const fn token(&self) -> FooterToken<'a>
pub const fn token(&self) -> FooterToken<'a>
The token of the footer.
sourcepub const fn separator(&self) -> FooterSeparator
pub const fn separator(&self) -> FooterSeparator
The separator between the footer token and its value.
Trait Implementations
Auto Trait Implementations
Blanket Implementations
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more