Struct mit_commit_message_lints::lints::Lints[][src]

pub struct Lints { /* fields omitted */ }

Implementations

impl Lints[src]

#[must_use]
pub fn new(lints: BTreeSet<Lint>) -> Lints
[src]

#[must_use]
pub fn available() -> &'static Lints
[src]

#[must_use]
pub fn names(self) -> Vec<&'static str>
[src]

#[must_use]
pub fn config_keys(self) -> Vec<String>
[src]

pub fn get_from_toml_or_else_vcs(
    config: &str,
    vcs: &mut dyn Vcs
) -> Result<Lints, Error>
[src]

Errors

If we fail to parse the toml

Panics

Will panic if the lint prefix isn’t delimited by dots. This should never happen as it’s a constant

pub fn try_from_vcs(config: &mut dyn Vcs) -> Result<Lints, Error>[src]

Create lints from the VCS configuration

Errors

If reading from the VCS fails

#[must_use]
pub fn merge(&self, other: &Lints) -> Lints
[src]

#[must_use]
pub fn subtract(&self, other: &Lints) -> Lints
[src]

Trait Implementations

impl Clone for Lints[src]

impl Debug for Lints[src]

impl Eq for Lints[src]

impl From<Vec<Lint, Global>> for Lints[src]

impl IntoIterator for Lints[src]

type Item = Lint

The type of the elements being iterated over.

type IntoIter = IntoIter<Lint>

Which kind of iterator are we turning this into?

impl PartialEq<Lints> for Lints[src]

impl StructuralEq for Lints[src]

impl StructuralPartialEq for Lints[src]

impl TryFrom<Vec<&'_ str, Global>> for Lints[src]

type Error = Error

The type returned in the event of a conversion error.

Auto Trait Implementations

impl RefUnwindSafe for Lints

impl Send for Lints

impl Sync for Lints

impl Unpin for Lints

impl UnwindSafe for Lints

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> Pointable for T

type Init = T

The type for initializers.

impl<T> ToCells for T where
    T: IntoIterator,
    <T as IntoIterator>::Item: ToCell
[src]

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

type Owned = T

The resulting type after obtaining ownership.

impl<T> ToRow for T where
    T: ToCells
[src]

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.