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§

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

Parses a string literal into an object.

Implementations on Foreign Types§

§

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

§

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

Parses a string into a field circuit.

§

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

§

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

Parses a string into a boolean.

§

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

§

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

Parses a string into a group circuit.

§

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

§

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

Parses a string into a scalar circuit.

§

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

§

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

Parses a string into a integer circuit.

§

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

§

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

Parses a string into an address.

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 an integer circuit.

§

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

§

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

Parses a string into a string type.

Implementors§

source§

impl<E> Parser for snarkvm_circuit_types::Address<E>where E: Environment,

source§

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

source§

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

source§

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

source§

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

source§

impl<E> Parser for snarkvm_circuit_types::StringType<E>where E: Environment,