[][src]Enum parze::repeat::Repeat

pub enum Repeat {
    Any,
    Exactly(usize),
    AtLeast(usize),
    AtMost(usize),
    Range(usizeusize),
}

A type that represents possible pattern repetitions.

Variants

Any

The pattern may be seen any number of times (including not at all).

Exactly(usize)

The pattern must be seen a specific number of times.

AtLeast(usize)

The pattern must be seen at least a specific number of times.

AtMost(usize)

The pattern must be seen at most a specific number of times.

Range(usizeusize)

The pattern must be seen at least a specific number of times and at most a specific number of times.

Methods

impl Repeat[src]

pub fn contains(self, m: usize) -> bool[src]

Returns true if this repetition permits the given number of repetitions.

Trait Implementations

impl From<usize> for Repeat[src]

impl From<RangeFull> for Repeat[src]

impl From<Range<usize>> for Repeat[src]

impl From<RangeFrom<usize>> for Repeat[src]

impl From<RangeTo<usize>> for Repeat[src]

impl Clone for Repeat[src]

impl Copy for Repeat[src]

Auto Trait Implementations

impl Send for Repeat

impl Sync for Repeat

impl Unpin for Repeat

impl UnwindSafe for Repeat

impl RefUnwindSafe for Repeat

Blanket Implementations

impl<'a, T> Captures<'a> for T where
    T: ?Sized
[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> From<T> for 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 = !

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.

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> Any for T where
    T: 'static + ?Sized
[src]