pub struct SeparatedList<T, V, S> { /* private fields */ }Implementations§
Trait Implementations§
Source§impl<'a, T, V, S> Visitor<'a, T> for SeparatedList<T, V, S>
impl<'a, T, V, S> Visitor<'a, T> for SeparatedList<T, V, S>
Source§fn accept(scanner: &mut Scanner<'a, T>) -> ParseResult<Self>
fn accept(scanner: &mut Scanner<'a, T>) -> ParseResult<Self>
Accept a list of elements separated by a separator.
§Arguments
scanner- The scanner to use.
§Returns
A ParseResult containing the accepted SeparatedList on success, or
an error on failure.
§Errors
Any error the visitor for the element or the separator returns, or
ParseError::UnexpectedToken if the scanner is empty when attempting
to parse the separator.
Auto Trait Implementations§
impl<T, V, S> Freeze for SeparatedList<T, V, S>
impl<T, V, S> RefUnwindSafe for SeparatedList<T, V, S>
impl<T, V, S> Send for SeparatedList<T, V, S>
impl<T, V, S> Sync for SeparatedList<T, V, S>
impl<T, V, S> Unpin for SeparatedList<T, V, S>
impl<T, V, S> UnwindSafe for SeparatedList<T, V, S>
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more