[−][src]Struct filecheck::Checker
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]
&self,
text: &str,
vars: &dyn VariableMap
) -> Result<(bool, String)>
Explain how directives are matched against the input text.
Trait Implementations
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]
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,
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> ToString for T where
T: Display + ?Sized,
[src]
T: Display + ?Sized,
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.
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>,