Macro nom_locate::impl_extend_into [−][src]
macro_rules! impl_extend_into { ($fragment_type : ty, $item : ty, $extender : ty) => { ... }; }
Expand description
Implement nom::ExtendInto for a specific fragment type.
Parameters
$fragment_type- The LocatedSpan’sfragmenttype$item- The type of the item being iterated (a reference for fragments of type&[T]).$extender- The type of the Extended.
Example of use
NB: This example is an extract from the nom_locate source code.
ⓘ
#[macro_use] extern crate nom_locate; impl_extend_into!(&'a str, char, String); impl_extend_into!(&'a [u8], u8, Vec<u8>);