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.
Parses a string literal into an object.
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 integer circuit.
Parses a string into an signature.
Parses the string into a value type.
Parses a struct as:
struct message:
owner as address;
amount as u64;
Parses a record type as:
record message:
owner as address.private;
user_defined as u64.public;
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 value.
Parses a string into a plaintext type.
Parses a string into a literal.
Parses a string into an ciphertext.
Parses a string into a register type.
Parses a string into a program ID of the form {name}.{network}
.
Parses a string into the state path.
Parses a string into a value.
Parses a string into an identifier.
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 the entry type.
Parses a string into a locator of the form {program_id}/{resource}
.
Parses a string into an ciphertext.
Parses a string as a record: { owner: address, identifier_0: entry_0, ..., identifier_n: entry_n, _nonce: field }
.
Parses a string into the entry.