Function bool
fn bool<Input, Error: ParserError<(Input, usize)>>(input: &mut (Input, usize)) -> Result<bool, Error>
where
Input: Stream<Token = u8> + StreamIsPartial + Clone
Parses one specific bit as a bool.
Effective Signature
Assuming you are parsing a (&[u8], usize) bit [Stream]:
# use *;;
# use ContextError;
#
Example
# use *;
# use Bytes;
# use InputError;
use bool;
type Stream<'i> = &'i Bytes;
assert_eq!;
assert_eq!;