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

Operations to parse a string literal into an object.

Required Methods

Parses a string literal into an object.

Implementations on Foreign Types

Parses a string into an address.

Parses a string into a boolean.

Parses a string into a field circuit.

Parses a string into a group circuit.

Parses a string into a scalar circuit.

Parses a string into a integer circuit.

Parses a string into a string type.

Parses a string into an signature.

Parses a string into an identifier.

Requirements

The identifier must be alphanumeric (or underscore). The identifier must not start with a number. The identifier must not be a keyword.

Parses a string into a plaintext value.

Parses the string into a value type.

Parses a string into an ciphertext.

Parses an interface as:

  interface message:
      owner as address;
      amount as u64;

Parses a record type as:

  record message:
      owner as address.private;
      gates as u64.public;

Parses the string into a finalize type.

Parses a string into a locator of the form {program_id}/{resource}.

Parses a string into the entry type.

Parses a string into a register type.

Parses a string into a literal.

Parses a string into an ciphertext.

Parses a string into the entry.

Parses a string as a record: { owner: address, gates: u64, identifier_0: entry_0, ..., identifier_n: entry_n, _nonce: field }.

Parses a string into a value.

Parses a string into a register. The register is of the form r{locator} or r{locator}.{identifier}.

Parses a string into a literal type.

Parses a string into a plaintext type.

Parses a string into a program ID of the form {name}.{network}.

Implementors