[][src]Struct rslint_cli::ExplanationRunner

pub struct ExplanationRunner {
    pub rules: Vec<String>,
    pub rule_names: Vec<String>,
}

A structure for converting user facing markdown docs to ANSI colored terminal explanations.

Fields

rules: Vec<String>rule_names: Vec<String>

Implementations

impl ExplanationRunner[src]

pub fn new(rules: Vec<String>) -> Self[src]

Make a new runner and try to fetch the remote docs files for each rule. This automatically issues any linter errors for invalid rules.

pub fn replace_headers(&mut self)[src]

pub fn replace_code_blocks(&mut self)[src]

pub fn strip_config_or_extra_examples(&mut self)[src]

pub fn replace_inline_code_blocks(&mut self)[src]

pub fn render(&mut self)[src]

pub fn print(self)[src]

Trait Implementations

impl Clone for ExplanationRunner[src]

impl Debug for ExplanationRunner[src]

impl Eq for ExplanationRunner[src]

impl Hash for ExplanationRunner[src]

impl PartialEq<ExplanationRunner> for ExplanationRunner[src]

impl StructuralEq for ExplanationRunner[src]

impl StructuralPartialEq for ExplanationRunner[src]

Auto Trait Implementations

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> CallHasher for T where
    T: Hash

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

impl<T> Erasable for T

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.