Trait nom::ExtendInto [−][src]
pub trait ExtendInto { type Item; type Extender: Extend<Self::Item>; fn new_builder(&self) -> Self::Extender; fn extend_into(&self, acc: &mut Self::Extender); }
abstracts something which can extend an Extend
used to build modified input slices in escaped_transform
Associated Types
type Item
[src]
the current input type is a sequence of that Item
type.
example: u8
for &[u8]
or char
for &str`
type Extender: Extend<Self::Item>
[src]
the type that will be produced
Required methods
fn new_builder(&self) -> Self::Extender
[src]
create a new Extend
of the correct type
fn extend_into(&self, acc: &mut Self::Extender)
[src]
accumulate the input into an accumulator
Implementations on Foreign Types
impl ExtendInto for [u8]
[src]
impl ExtendInto for [u8]
[src]impl ExtendInto for &[u8]
[src]
impl ExtendInto for &[u8]
[src]impl ExtendInto for str
[src]
impl ExtendInto for str
[src]type Item = char
type Extender = String
fn new_builder(&self) -> String
[src]
fn extend_into(&self, acc: &mut String)
[src]
impl ExtendInto for &str
[src]
impl ExtendInto for &str
[src]type Item = char
type Extender = String
fn new_builder(&self) -> String
[src]
fn extend_into(&self, acc: &mut String)
[src]
impl ExtendInto for char
[src]
impl ExtendInto for char
[src]