snarkvm_console_network

Trait Parser

Source
pub trait Parser: Display + FromStr {
    // Required method
    fn parse(string: &str) -> Result<(&str, Self), Err<VerboseError<&str>>>
       where Self: Sized;
}
Expand description

Operations to parse a string literal into an object.

Required Methods§

Source

fn parse(string: &str) -> Result<(&str, Self), Err<VerboseError<&str>>>
where Self: Sized,

Parses a string literal into an object.

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.

Implementations on Foreign Types§

Source§

impl<E> Parser for Boolean<E>
where E: Environment,

Source§

fn parse(string: &str) -> Result<(&str, Boolean<E>), Err<VerboseError<&str>>>

Parses a string into a boolean.

Source§

impl<E> Parser for Field<E>
where E: Environment,

Source§

fn parse(string: &str) -> Result<(&str, Field<E>), Err<VerboseError<&str>>>

Parses a string into a field circuit.

Source§

impl<E> Parser for Group<E>
where E: Environment,

Source§

fn parse(string: &str) -> Result<(&str, Group<E>), Err<VerboseError<&str>>>

Parses a string into a group circuit.

Source§

impl<E> Parser for Scalar<E>
where E: Environment,

Source§

fn parse(string: &str) -> Result<(&str, Scalar<E>), Err<VerboseError<&str>>>

Parses a string into a scalar circuit.

Source§

impl<E, I> Parser for Integer<E, I>
where E: Environment, I: IntegerType,

Source§

fn parse(string: &str) -> Result<(&str, Integer<E, I>), Err<VerboseError<&str>>>

Parses a string into a integer circuit.

Implementors§