fn separated_by<U, P: Parser<I, U>>(self, other: P) -> SeparatedBy<Self, P, U> where Self: Sized {
        SeparatedBy {
            a: self,
            b: other,
            at_least: 0,
            allow_leading: false,
            allow_trailing: false,
            phantom: PhantomData,
        }
    }
/// Parse an expression, separated by another, any number of times.
///
/// You can use [`SeparatedBy::allow_leading`] or [`SeparatedBy::allow_trailing`] to allow leading or trailing
/// separators.
///
/// # Examples
///
/// ```
/// # use chumsky::{prelude::*, error::Cheap};
/// let shopping = text::ident::<_, Simple<char>>()
///     .padded()
///     .separated_by(just(','));
///
/// assert_eq!(shopping.parse("eggs"), Ok(vec!["eggs".to_string()]));
/// assert_eq!(shopping.parse("eggs, flour, milk"), Ok(vec!["eggs".to_string(), "flour".to_string(), "milk".to_string()]));
/// ```
///
/// See [`SeparatedBy::allow_leading`] and [`SeparatedBy::allow_trailing`] for more examples.
Parse an expression, separated by another, any number of times.
Parse an expression separated by another any number of times .
fn separated_by<U, P: Parser<I, U>>(self, other: P) -> SeparatedBy<Self, P, U> where Self: Sized {
        SeparatedBy {
            a: self,
            b: other,
            at_least: 0,
            allow_leading: false,
            allow_trailing: false,
            phantom: PhantomData,
        }
    }
fn separated_by < U , P : Parser < I , U > > ( self , other : P ) -> SeparatedBy < Self , P , U > where Self : Sized { SeparatedBy { a : self , b : other , at_least : 0 , allow_leading : false , allow_trailing : false , phantom : PhantomData , } }
Parse an expression, separated by another, any number of times.
Parse an expression separated by another any number of times .
self
other
P
examples
None
use chumsky::{prelude::*, error::cheap};
let shopping = text::ident::<_, Simple>()
.padded()
.separated_by(just(',')).

assert_eq!(shopping.parse("eggs"), Ok(vec!["eggs".to_string()]));
assert_eq!(shopping.parse("eggs, flour, milk"), Ok(vec!["eggs".to_string(), "flour".to_string(), "milk".to_string()]));
```

See [`SeparatedBy::allow_leading`] and [`SeparatedBy::allow_trailing`] for more examples.
let shopping = text :: ident :: <_ Simple > () . padded () . separated_by ( just ( ' ' )) . assert_eq! ( shopping . parse ( " eggs " ) Ok ( vec! [ " eggs " . to_string () ] )) ; assert_eq! ( shopping . parse ( " eggs flour milk " ) Ok ( vec! [ " eggs " . to_string () " flour " . to_string () " milk " . to_string () ] )) ; ` ` ` See [ ` SeparatedBy :: allow_leading ` ] and [ ` SeparatedBy :: allow_trailing ` ] for more examples .