[][src]Struct filecheck::Checker

pub struct Checker { /* fields omitted */ }

Verify a list of directives against a test input.

Use a CheckerBuilder to construct a Checker. Then use the test method to verify the list of directives against a test input.

Methods

impl Checker[src]

pub fn is_empty(&self) -> bool[src]

An empty checker contains no directives, and will match any input string.

pub fn check(&self, text: &str, vars: &dyn VariableMap) -> Result<bool>[src]

Verify directives against the input text.

This returns true if the text matches all the directives, false if it doesn't. An error is only returned if there is a problem with the directives.

pub fn explain(
    &self,
    text: &str,
    vars: &dyn VariableMap
) -> Result<(bool, String)>
[src]

Explain how directives are matched against the input text.

Trait Implementations

impl Display for Checker[src]

Auto Trait Implementations

impl RefUnwindSafe for Checker

impl Send for Checker

impl Sync for Checker

impl Unpin for Checker

impl UnwindSafe for Checker

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> ToString for T where
    T: Display + ?Sized
[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.