Lines Matching defs:bytes
11 //! bytes::complete::{tag, take_while_m_n},
72 //! functions with very specific purposes, like "take 5 bytes", or "recognize the
94 //! bytes::complete::is_not
122 //! This function takes a byte array as input, and tries to consume 4 bytes.
130 //! use nom::{IResult, bytes::streaming::take};
178 //! a number of bytes or character as argument) or even other parsers (like
186 //! use nom::bytes::complete::{tag, take};
188 //! tag("abcd")(i) // will consume bytes if the input begins with "abcd"
192 //! take(10u8)(i) // will consume and return 10 bytes of input
205 //! use nom::bytes::complete::tag;
218 //! use nom::{IResult, combinator::opt, bytes::complete::tag};
232 //! use nom::{IResult, multi::many0, bytes::complete::tag};
265 //! bytes::streaming::{tag, take},
288 //! use nom::{IResult, bytes::complete::tag};
330 //! use nom::{IResult, Err, Needed, error::{Error, ErrorKind}, bytes, character};
333 //! bytes::streaming::take(4u8)(i)
337 //! bytes::complete::take(4u8)(i)
340 //! // both parsers will take 4 bytes as expected
344 //! // if the input is smaller than 4 bytes, the streaming parser
454 pub mod bytes;