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, 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.

source§

impl<N> Parser for Signature<N>where N: Network,

source§

fn parse(string: &str) -> Result<(&str, Signature<N>), Err<VerboseError<&str>>>

Parses a string into an signature.

Implementors§

source§

impl Parser for LiteralType

§

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

§

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

§

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

§

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

§

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

§

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

source§

impl<N: Network> Parser for Entry<N, Plaintext<N>>

source§

impl<N: Network> Parser for EntryType<N>

source§

impl<N: Network> Parser for Literal<N>

source§

impl<N: Network> Parser for Plaintext<N>

source§

impl<N: Network> Parser for PlaintextType<N>

source§

impl<N: Network> Parser for Register<N>

source§

impl<N: Network> Parser for RegisterType<N>

source§

impl<N: Network> Parser for Value<N>

source§

impl<N: Network> Parser for ValueType<N>

source§

impl<N: Network> Parser for StatePath<N>

source§

impl<N: Network> Parser for Ciphertext<N>

source§

impl<N: Network> Parser for Identifier<N>

source§

impl<N: Network> Parser for Locator<N>

source§

impl<N: Network> Parser for ProgramID<N>

source§

impl<N: Network> Parser for Record<N, Plaintext<N>>

source§

impl<N: Network> Parser for Record<N, Ciphertext<N>>

source§

impl<N: Network> Parser for RecordType<N>

source§

impl<N: Network> Parser for Struct<N>