Trait bogobble::charbool::CharBool[][src]

pub trait CharBool: Sized {
    fn char_bool(&self, c: char) -> bool;

    fn expected(&self) -> Expected { ... }
fn one(self) -> OneChar<Self> { ... }
fn star(self) -> CharStar<Self> { ... }
fn min_n(self, min: usize) -> CharMin<Self> { ... }
fn plus(self) -> CharPlus<Self> { ... }
fn istar(self) -> ICharStar<Self> { ... }
fn iplus(self) -> ICharPlus<Self> { ... }
fn iexact(self, n: usize) -> ICharExact<Self> { ... }
fn except<E: CharBool>(self, e: E) -> CharsExcept<Self, E> { ... }
fn exact(self, n: usize) -> CharExact<Self> { ... }
fn until<'a, P: Parser<'a>>(self, end: P) -> CharUntil<Self, P> { ... } }

Required methods

Provided methods

min_n not min to avoid ambiguity with std::cmp::Ord

 use bogobble::*;
 assert_eq!(
     Any.except("_").min_n(4).parse_s("asedf_wes"),
     Ok("asedf")
     );

Implementations on Foreign Types

Implementors