pub struct ScalarRange<const A: char, const B: char>;Trait Implementations§
Source§impl<const A: char, const B: char> Default for ScalarRange<A, B>
impl<const A: char, const B: char> Default for ScalarRange<A, B>
Source§fn default() -> ScalarRange<A, B>
fn default() -> ScalarRange<A, B>
Returns the “default value” for a type. Read more
Source§impl<const A: char, const B: char> Matcher<char> for ScalarRange<A, B>
impl<const A: char, const B: char> Matcher<char> for ScalarRange<A, B>
Source§fn matches<'a, H: HaystackOf<'a, char>>(hay: &mut H) -> bool
fn matches<'a, H: HaystackOf<'a, char>>(hay: &mut H) -> bool
Checks if the start of the haystack contains a match for this
Matcher. If this method
successfully matches the start of the haystack, hay is progressed so that hay.item()
hasn’t been matched yet. On a fail, the state of hay is undefined.Source§fn all_matches<'a, H: HaystackOf<'a, I>>(hay: &mut H) -> Vec<usize>
fn all_matches<'a, H: HaystackOf<'a, I>>(hay: &mut H) -> Vec<usize>
Produces a Vec of all valid haystack states produced as the result of a valid match at the
start of
hay, used to implement backtracking. The Vec is produced in reverse priority
order, so the last match has the highest priority. After calling all_matches, the state of
hay itself is undefined. Read moreSource§fn captures<'a, H: HaystackOf<'a, I>>(
hay: &mut H,
caps: &mut IndexedCaptures,
) -> bool
fn captures<'a, H: HaystackOf<'a, I>>( hay: &mut H, caps: &mut IndexedCaptures, ) -> bool
Source§fn all_captures<'a, H: HaystackOf<'a, I>>(
hay: &mut H,
caps: &mut IndexedCaptures,
) -> Vec<(usize, IndexedCaptures)>
fn all_captures<'a, H: HaystackOf<'a, I>>( hay: &mut H, caps: &mut IndexedCaptures, ) -> Vec<(usize, IndexedCaptures)>
Produces a Vec of all valid captures (and accompanying haystack states) present at the start
of
hay. Used to implement backtracking for capturing methods. As with
all_matches, the resulting Vec is produced in reverse priority
order. After calling all_captures, the state of hay and caps are undefined. Read moreAuto Trait Implementations§
impl<const A: char, const B: char> Freeze for ScalarRange<A, B>
impl<const A: char, const B: char> RefUnwindSafe for ScalarRange<A, B>
impl<const A: char, const B: char> Send for ScalarRange<A, B>
impl<const A: char, const B: char> Sync for ScalarRange<A, B>
impl<const A: char, const B: char> Unpin for ScalarRange<A, B>
impl<const A: char, const B: char> UnwindSafe for ScalarRange<A, B>
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more