fn start_flags_reverse(
        &self,
        text: &[u8],
        at: usize,
    ) -> (EmptyFlags, StateFlags) {
        let mut empty_flags = EmptyFlags::default();
        let mut state_flags = StateFlags::default();
        empty_flags.start = at == text.len();
        empty_flags.end = text.len() == 0;
        empty_flags.start_line = at == text.len() || text[at] == b'\n';
        empty_flags.end_line = text.len() == 0;
        if at < text.len() && Byte::byte(text[at]).is_ascii_word() {
            state_flags.set_word();
        }
        (empty_flags, state_flags)
    }
/// Computes the set of starting flags for the given position in text.
///
/// This should only be used when executing the DFA in reverse over the
/// input.
Computes the set of starting flags for the given position in text.
This should only be used when executing the DFA in reverse over the
input.
Computes the set of starting flags for the given position in text . This should only be used when executing the DFA in reverse over the input .
fn start_flags_reverse(
        &self,
        text: &[u8],
        at: usize,
    ) -> (EmptyFlags, StateFlags) {
        let mut empty_flags = EmptyFlags::default();
        let mut state_flags = StateFlags::default();
        empty_flags.start = at == text.len();
        empty_flags.end = text.len() == 0;
        empty_flags.start_line = at == text.len() || text[at] == b'\n';
        empty_flags.end_line = text.len() == 0;
        if at < text.len() && Byte::byte(text[at]).is_ascii_word() {
            state_flags.set_word();
        }
        (empty_flags, state_flags)
    }
fn start_flags_reverse ( & self , text : & [ u8 ] , at : usize , ) -> ( EmptyFlags , StateFlags ) { let mut empty_flags = EmptyFlags :: default ( ) ; let mut state_flags = StateFlags :: default ( ) ; empty_flags . start = at == text . len ( ) ; empty_flags . end = text . len ( ) == 0 ; empty_flags . start_line = at == text . len ( ) || text [ at ] == b'\n' ; empty_flags . end_line = text . len ( ) == 0 ; if at < text . len ( ) && Byte :: byte ( text [ at ] ) . is_ascii_word ( ) { state_flags . set_word ( ) ; } ( empty_flags , state_flags ) }
Computes the set of starting flags for the given position in text.
Computes the set of starting flags for the given position in text .
&self
text
&[u8]
at
usize
&self
text
&[u8]
at
usize