snarkvm_console_program

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.

Implementors§

Source§

impl Parser for LiteralType

Source§

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

Source§

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

Source§

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

Source§

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

Source§

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

Source§

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

Source§

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

Source§

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

Source§

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

Source§

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

Source§

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

Source§

impl<N: Network> Parser for FinalizeType<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 ArrayType<N>

Source§

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

Source§

impl<N: Network> Parser for Future<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 StructType<N>