pub fn fold_into_vector<I, V: VecLike<I>>(mut accumulator: V, item: I) -> V {
    accumulator.push(item);

    accumulator
}
/// Fold an item into a vector.
/// This is useful when combined with the `fold_many0!` macro for instance.
///
/// # Examples
///
/// ```
/// # #[macro_use]
/// # extern crate nom;
/// # #[macro_use]
/// # extern crate tagua_parser;
/// use tagua_parser::Result;
/// use tagua_parser::internal::fold_into_vector;
///
/// # fn main() {
/// named!(
///     test<&[u8], Vec<&[u8]>>,
///     fold_many0!(
///         tag!("abc"),
///         Vec::new(),
///         fold_into_vector
///     )
/// );
///
/// assert_eq!(test(&b"abcabc"[..]), Ok((&b""[..], vec![&b"abc"[..], &b"abc"[..]])));
/// # }
/// ```
Fold an item into a vector.
This is useful when combined with the `fold_many0!` macro for instance.
Fold an item into a vector . This is useful when combined with the ` fold_many0! ` macro for instance .
pub fn fold_into_vector<I, V: VecLike<I>>(mut accumulator: V, item: I) -> V {
    accumulator.push(item);
    accumulator
}
pub fn fold_into_vector < I , V : VecLike < I > > ( mut accumulator : V , item : I ) -> V { accumulator . push ( item ) ; accumulator }
Fold an item into a vector.
Fold an item into a vector .
accumulator
V
item
I
examples
None
#[macro_use]
None
extern crate nom;
None
#[macro_use]
None
extern crate tagua_parser;
use tagua_parser::Result;
use tagua_parser::internal::fold_into_vector.
use tagua_parser :: Result ; use tagua_parser :: internal :: fold_into_vector .
fn main() {
None
}
None