[][src]Trait nom::ExtendInto

pub trait ExtendInto {
    type Item;
    type Extender;
    pub fn new_builder(&self) -> Self::Extender;
pub 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[src]

The type that will be produced

Loading content...

Required methods

pub fn new_builder(&self) -> Self::Extender[src]

Create a new Extend of the correct type

pub fn extend_into(&self, acc: &mut Self::Extender)[src]

Accumulate the input into an accumulator

Loading content...

Implementations on Foreign Types

impl ExtendInto for [u8][src]

type Item = u8

type Extender = Vec<u8>

impl<'_> ExtendInto for &'_ [u8][src]

type Item = u8

type Extender = Vec<u8>

impl ExtendInto for str[src]

type Item = char

type Extender = String

impl<'_> ExtendInto for &'_ str[src]

type Item = char

type Extender = String

impl ExtendInto for char[src]

type Item = char

type Extender = String

impl<O, T> ExtendInto for BitSlice<O, T> where
    O: BitOrder,
    T: BitStore
[src]

type Item = bool

type Extender = BitVec<O, T>

impl<'a, O, T> ExtendInto for &'a BitSlice<O, T> where
    O: BitOrder,
    T: 'a + BitStore
[src]

type Item = bool

type Extender = BitVec<O, T>

Loading content...

Implementors

Loading content...