Trait IdentParser

Source
pub trait IdentParser<Ident, Type, Input>: Copy {
    // Required methods
    fn parse_ident(self, i: Input) -> SmtRes<Ident>;
    fn parse_type(self, i: Input) -> SmtRes<Type>;
}
Expand description

Can parse identifiers and types. Used for get_model.

For more information refer to the module-level documentation.

Required Methods§

Source

fn parse_ident(self, i: Input) -> SmtRes<Ident>

Parses an identifier.

Source

fn parse_type(self, i: Input) -> SmtRes<Type>

Parses a 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§

Source§

impl<'a> IdentParser<String, String, &'a str> for Parser

Source§

impl<'a, Ident, Type, T> IdentParser<Ident, Type, &'a str> for T
where T: IdentParser<Ident, Type, &'a [u8]>,

Source§

impl<'a, Ident, Type, T, Br> IdentParser<Ident, Type, &'a mut SmtParser<Br>> for T
where T: IdentParser<Ident, Type, &'a str>, Br: BufRead,