HasParser

Trait HasParser 

Source
pub trait HasParser: Sized {
    // Required method
    fn parser(input: &mut LocatingSlice<&str>) -> ModalResult<Self>;
}
Expand description

Trait for types which can be parsed

Required Methods§

Source

fn parser(input: &mut LocatingSlice<&str>) -> ModalResult<Self>

Parse an element of this type.

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§