Require documentation on filecheck public items.
This commit is contained in:
@@ -234,6 +234,8 @@
|
|||||||
//! This will match `"one, two"` , but not `"one,two"`. Without the `$()`, trailing whitespace
|
//! This will match `"one, two"` , but not `"one,two"`. Without the `$()`, trailing whitespace
|
||||||
//! would be trimmed from the pattern.
|
//! would be trimmed from the pattern.
|
||||||
|
|
||||||
|
#![deny(missing_docs)]
|
||||||
|
|
||||||
pub use error::{Error, Result};
|
pub use error::{Error, Result};
|
||||||
pub use variable::{VariableMap, Value, NO_VARIABLES};
|
pub use variable::{VariableMap, Value, NO_VARIABLES};
|
||||||
pub use checker::{Checker, CheckerBuilder};
|
pub use checker::{Checker, CheckerBuilder};
|
||||||
|
|||||||
@@ -19,7 +19,9 @@ pub fn varname_prefix(s: &str) -> usize {
|
|||||||
/// A variable can contain either a regular expression or plain text.
|
/// A variable can contain either a regular expression or plain text.
|
||||||
#[derive(Debug, Clone, PartialEq, Eq)]
|
#[derive(Debug, Clone, PartialEq, Eq)]
|
||||||
pub enum Value<'a> {
|
pub enum Value<'a> {
|
||||||
|
/// Verbatim text.
|
||||||
Text(Cow<'a, str>),
|
Text(Cow<'a, str>),
|
||||||
|
/// Regular expression.
|
||||||
Regex(Cow<'a, str>),
|
Regex(Cow<'a, str>),
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user