[−][src]Enum ezregexp::Pattern
A Regular Expression Pattern
Variants
Sequence of patterns
Text(String)
Text
Raw(String)
Raw (unprocessed text), used internally
Alternative
Repetition
Digit
Letter,
Word characters
Start of line/input
End of line/input
Negation
Anything
Named group
Implementations
impl Pattern
[src]
pub fn and_either<PL: PatternList>(self, branches: PL) -> Self
[src]
Chain an alternative
pub fn and_then<T: Into<Pattern>>(self, exp: T) -> Self
[src]
Append a new pattern
pub fn and_maybe<T: Into<Pattern>>(self, exp: T) -> Self
[src]
Append an optional pattern
pub fn and_maybe_many<T: Into<Pattern>>(self, exp: T) -> Self
[src]
Append a pattern zero or more times
pub fn and_many<T: Into<Pattern>>(self, exp: T) -> Self
[src]
Append a pattern one or more times
pub fn many(self, low: u32, high: u32) -> Self
[src]
Repeat the previous pattern between low and high times
pub fn times(self, n: u32) -> Self
[src]
Repeat the previous pattern n times
pub fn named<S: Into<String>>(self, name: S) -> Self
[src]
name preceding pattern
pub fn must_end(self) -> Self
[src]
Must reach end of input
Trait Implementations
impl Debug for Pattern
[src]
impl Display for Pattern
[src]
Generate regular expression from Pattern
impl<'_> From<&'_ str> for Pattern
[src]
Convert a string into a text pattern
impl From<String> for Pattern
[src]
Convert a string into a text pattern
impl ToCode for Pattern
[src]
Convert Pattern to Rust code
Auto Trait Implementations
impl RefUnwindSafe for Pattern
[src]
impl Send for Pattern
[src]
impl Sync for Pattern
[src]
impl Unpin for Pattern
[src]
impl UnwindSafe for Pattern
[src]
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> 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.
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>,