Trait ListItem

Source
pub trait ListItem: Sized {
    type LAST;

    const LAST_PREFIX: Option<TSXToken> = None;
    const EMPTY: Option<Self> = None;

    // Provided method
    fn parse_last_item(
        reader: &mut impl TokenReader<TSXToken, TokenStart>,
        state: &mut ParsingState,
        options: &ParseOptions,
    ) -> ParseResult<Self::LAST> { ... }
}

Provided Associated Constants§

Source

const LAST_PREFIX: Option<TSXToken> = None

Source

const EMPTY: Option<Self> = None

Required Associated Types§

Provided Methods§

Source

fn parse_last_item( reader: &mut impl TokenReader<TSXToken, TokenStart>, state: &mut ParsingState, options: &ParseOptions, ) -> ParseResult<Self::LAST>

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.

Implementors§