[][src]Struct git_conventional::Footer

pub struct Footer<'a> { /* fields omitted */ }

A single footer.

A footer is similar to a Git trailer, with the exception of not requiring whitespace before newlines.

See: https://git-scm.com/docs/git-interpret-trailers

Methods

impl<'a> Footer<'a>[src]

pub const fn new(
    token: FooterToken<'a>,
    sep: FooterSeparator,
    value: &'a str
) -> Self
[src]

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]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.