pub trait ParseExpr {
// Required methods
fn parse_string(&self) -> Result<String>;
fn parse_path(&self) -> Result<&Path>;
fn parse_int<N>(&self) -> Result<N>
where N: FromStr,
N::Err: Display;
fn parse_closure(&self) -> Result<&ExprClosure>;
fn parse_call_or_closure(self) -> Result<CallOrClosure>;
fn parse_call(&self) -> Result<&ExprCall>;
}Required Methods§
fn parse_string(&self) -> Result<String>
fn parse_path(&self) -> Result<&Path>
fn parse_int<N>(&self) -> Result<N>
fn parse_closure(&self) -> Result<&ExprClosure>
fn parse_call_or_closure(self) -> Result<CallOrClosure>
fn parse_call(&self) -> Result<&ExprCall>
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.