Struct jpar::Quantifier [−][src]
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]
fn clone(&self) -> Quantifier
[src]
pub fn clone_from(&mut self, source: &Self)
1.0.0[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]
fn from(value: RangeInclusive<usize>) -> Self
[src]
impl From<RangeToInclusive<usize>> for Quantifier
[src]
fn from(value: RangeToInclusive<usize>) -> Self
[src]
impl From<i16> for Quantifier
[src]
impl From<i32> for Quantifier
[src]
impl From<i8> for Quantifier
[src]
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]
fn hash<__H: Hasher>(&self, state: &mut __H)
[src]
pub fn hash_slice<H>(data: &[Self], state: &mut H) where
H: Hasher,
1.3.0[src]
H: Hasher,
impl PartialEq<Quantifier> for Quantifier
[src]
fn eq(&self, other: &Quantifier) -> bool
[src]
fn ne(&self, other: &Quantifier) -> bool
[src]
impl StructuralEq for Quantifier
[src]
impl StructuralPartialEq for Quantifier
[src]
Auto Trait Implementations
impl RefUnwindSafe for Quantifier
impl Send for Quantifier
impl Sync for Quantifier
impl Unpin for Quantifier
impl UnwindSafe for Quantifier
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> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
pub fn to_owned(&self) -> T
[src]
pub fn clone_into(&self, target: &mut T)
[src]
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>,