Struct mit_commit_message_lints::lints::Lints [−][src]
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]
config: &str,
vcs: &mut dyn Vcs
) -> Result<Lints, Error>
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]
#[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?
fn into_iter(self) -> Self::IntoIter
[src]
impl PartialEq<Lints> for Lints
[src]
impl StructuralEq for Lints
[src]
impl StructuralPartialEq for Lints
[src]
impl TryFrom<Vec<&'_ str, Global>> for Lints
[src]
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]
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,
pub fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> Pointable for T
pub const ALIGN: usize
type Init = T
The type for initializers.
pub unsafe fn init(init: <T as Pointable>::Init) -> usize
pub unsafe fn deref<'a>(ptr: usize) -> &'a T
pub unsafe fn deref_mut<'a>(ptr: usize) -> &'a mut T
pub unsafe fn drop(ptr: usize)
impl<T> ToCells for T where
T: IntoIterator,
<T as IntoIterator>::Item: ToCell,
[src]
T: IntoIterator,
<T as IntoIterator>::Item: ToCell,
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
pub fn to_owned(&self) -> T
[src]
pub fn clone_into(&self, target: &mut T)
[src]
impl<T> ToRow for T where
T: ToCells,
[src]
T: ToCells,
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
pub fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,