pub trait WordExt<'a>: Word {
// Provided methods
fn parse_one(stream: &mut InstructionStream<'a>) -> ParseResult<Self> { ... }
fn parse_optional(
stream: &mut InstructionStream<'a>,
) -> ParseResult<Option<Self>> { ... }
fn parse_eos(stream: &mut InstructionStream<'a>) -> ParseResult<&'a [Self]> { ... }
}Expand description
An extension auto-trait for Word.
Provided Methods§
Sourcefn parse_one(stream: &mut InstructionStream<'a>) -> ParseResult<Self>
fn parse_one(stream: &mut InstructionStream<'a>) -> ParseResult<Self>
Parses one word.
Sourcefn parse_optional(
stream: &mut InstructionStream<'a>,
) -> ParseResult<Option<Self>>
fn parse_optional( stream: &mut InstructionStream<'a>, ) -> ParseResult<Option<Self>>
Tries to optionally parse one word.
Sourcefn parse_eos(stream: &mut InstructionStream<'a>) -> ParseResult<&'a [Self]>
fn parse_eos(stream: &mut InstructionStream<'a>) -> ParseResult<&'a [Self]>
Parses words until the end of the stream.
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.