[−][src]Struct git_conventional::Footer
A single footer.
A footer is similar to a Git trailer, with the exception of not requiring whitespace before newlines.
Methods
impl<'a> Footer<'a>
[src][−]
pub const fn new(
token: FooterToken<'a>,
sep: FooterSeparator,
value: &'a str
) -> Self
[src][−]
token: FooterToken<'a>,
sep: FooterSeparator,
value: &'a str
) -> Self
Piece together a footer.
pub const fn token(&self) -> FooterToken<'a>
[src][−]
The token of the footer.
pub const fn separator(&self) -> FooterSeparator
[src][−]
The separator between the footer token and its value.
pub const fn value(&self) -> &'a str
[src][−]
The value of the footer.
pub fn breaking(&self) -> bool
[src][−]
A flag to signal that the footer describes a breaking change.
Trait Implementations
impl<'a> Clone for Footer<'a>
[src][+]
impl<'a> Copy for Footer<'a>
[src]
impl<'a> Debug for Footer<'a>
[src][+]
impl<'a> Eq for Footer<'a>
[src]
impl<'a> Hash for Footer<'a>
[src][+]
impl<'a> PartialEq<Footer<'a>> for Footer<'a>
[src][+]
impl<'a> StructuralEq for Footer<'a>
[src]
impl<'a> StructuralPartialEq for Footer<'a>
[src]
Auto Trait Implementations
impl<'a> RefUnwindSafe for Footer<'a>
impl<'a> Send for Footer<'a>
impl<'a> Sync for Footer<'a>
impl<'a> Unpin for Footer<'a>
impl<'a> UnwindSafe for Footer<'a>
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src][+]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src][+]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src][+]
T: ?Sized,
impl<T> From<T> for T
[src][+]
impl<T, U> Into<U> for T where
U: From<T>,
[src][+]
U: From<T>,
impl<T> ToOwned for T where
T: Clone,
[src][+]
T: Clone,
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src][+]
U: Into<T>,
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src][+]
U: TryFrom<T>,