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]> { ... }
}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]>
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.