[−][src]Function cron_clock::anychar
pub fn anychar<T>(input: T) -> Result<(T, char), Err<T, u32>> where
T: InputIter + InputLength + Slice<RangeFrom<usize>> + AtEof,
<T as InputIter>::Item: AsChar,
matches one byte as a character. Note that the input type will
accept a str
, but not a &[u8]
, unlike many other nom parsers.
Example
assert_eq!(anychar("abc"), Ok(("bc",'a')));