Struct jpar::Quantifier[][src]

pub struct Quantifier { /* fields omitted */ }

A quantifier that specify a range of repetitions with both ends included.

Implementations

impl Quantifier[src]

pub fn no_repeat() -> Quantifier[src]

pub fn zero_or_more() -> Quantifier[src]

pub fn one_or_more() -> Quantifier[src]

pub fn exact(value: usize) -> Quantifier[src]

pub fn at_least(min: usize) -> Quantifier[src]

pub fn at_most(max: usize) -> Quantifier[src]

pub fn min_max(min: usize, max: usize) -> Quantifier[src]

pub fn min(&self) -> usize[src]

pub fn max(&self) -> Option<usize>[src]

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

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

pub fn is_finished(&self, iteration: usize) -> bool[src]

Success when iteration >= max.

Trait Implementations

impl Clone for Quantifier[src]

impl Copy for Quantifier[src]

impl Debug for Quantifier[src]

impl Eq for Quantifier[src]

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

impl From<RangeFull> for Quantifier[src]

impl From<RangeInclusive<usize>> for Quantifier[src]

impl From<RangeToInclusive<usize>> for Quantifier[src]

impl From<i16> for Quantifier[src]

Implemented for simplicity.

Safety

This method will panic if number is negative.

impl From<i32> for Quantifier[src]

Implemented for simplicity.

Safety

This method will panic if number is negative.

impl From<i8> for Quantifier[src]

Implemented for simplicity.

Safety

This method will panic if number is negative.

impl From<isize> for Quantifier[src]

impl From<u16> for Quantifier[src]

impl From<u32> for Quantifier[src]

impl From<u8> for Quantifier[src]

impl From<usize> for Quantifier[src]

impl Hash for Quantifier[src]

impl PartialEq<Quantifier> for Quantifier[src]

impl StructuralEq for Quantifier[src]

impl StructuralPartialEq for Quantifier[src]

Auto Trait Implementations

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> 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 = 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.