Module

std::cursor

source

Re-exported from core::cursor.

Text cursors for incremental parsing.

Types

CursorA position in text, for reading it from front to back.

Functions

skip_while_goThe first position from p on in v whose byte pred rejects, or the end.

Function declarations

fn skip_while_gosource

forall 'k, C where ReadBytes[C, Str['k]].
fn skip_while_go(&cx: C, v: Str['k], p: usize, pred: fn(u8) -> bool) -> usize { ... }

The first position from p on in v whose byte pred rejects, or the end. Used by Cursor::skip_while and take_while; not meant for direct use.