TypeName

Trait TypeName 

Source
pub trait TypeName {
    // Required method
    fn type_name() -> &'static str;
}

Required Methods§

Source

fn type_name() -> &'static str

Returns the type name of the object as a string. (i.e. “u8”)

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.

Implementations on Foreign Types§

Source§

impl<A> TypeName for Signature<A>
where A: Aleo,

Source§

fn type_name() -> &'static str

Returns the type name of the circuit as a string.

Source§

impl<A, Private> TypeName for Record<A, Private>
where A: Aleo, Private: Visibility<A>,

Source§

fn type_name() -> &'static str

Source§

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

Source§

fn type_name() -> &'static str

Returns the type name of the circuit as a string.

Source§

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

Source§

fn type_name() -> &'static str

Returns the type name of the circuit as a string.

Source§

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

Source§

fn type_name() -> &'static str

Returns the type name of the circuit as a string.

Source§

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

Source§

fn type_name() -> &'static str

Returns the type name of the circuit as a string.

Source§

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

Source§

fn type_name() -> &'static str

Returns the type name of the circuit as a string.

Source§

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

Source§

fn type_name() -> &'static str

Returns the type name of the circuit as a string.

Source§

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

Source§

fn type_name() -> &'static str

Returns the type name of the circuit as a string.

Source§

impl<N> TypeName for Import<N>
where N: Network,

Source§

fn type_name() -> &'static str

Returns the type name as a string.

Source§

impl<N, Command> TypeName for FinalizeCore<N, Command>
where N: Network, Command: CommandTrait<N>,

Source§

fn type_name() -> &'static str

Returns the type name as a string.

Source§

impl<N, Instruction> TypeName for ClosureCore<N, Instruction>
where N: Network, Instruction: InstructionTrait<N>,

Source§

fn type_name() -> &'static str

Returns the type name as a string.

Source§

impl<N, Instruction, Command> TypeName for FunctionCore<N, Instruction, Command>
where N: Network, Instruction: InstructionTrait<N>, Command: CommandTrait<N>,

Source§

fn type_name() -> &'static str

Returns the type name as a string.

Source§

impl<N, Instruction, Command> TypeName for ProgramCore<N, Instruction, Command>
where N: Network, Instruction: InstructionTrait<N>, Command: CommandTrait<N>,

Source§

fn type_name() -> &'static str

Returns the type name as a string.

Implementors§

Source§

impl<E> TypeName for snarkvm_debug::prelude::Address<E>
where E: Environment,

Source§

impl<E> TypeName for snarkvm_debug::prelude::Boolean<E>
where E: Environment,

Source§

impl<E> TypeName for snarkvm_debug::prelude::Field<E>
where E: Environment,

Source§

impl<E> TypeName for snarkvm_debug::prelude::Group<E>
where E: Environment,

Source§

impl<E> TypeName for snarkvm_debug::prelude::Scalar<E>
where E: Environment,

Source§

impl<E> TypeName for snarkvm_debug::prelude::StringType<E>
where E: Environment,

Source§

impl<E, I> TypeName for snarkvm_debug::prelude::integers::Integer<E, I>
where E: Environment, I: IntegerType,

Source§

impl<N> TypeName for Mapping<N>
where N: Network,

Source§

impl<N> TypeName for RecordType<N>
where N: Network,

Source§

impl<N> TypeName for snarkvm_debug::prelude::Signature<N>
where N: Network,

Source§

impl<N> TypeName for StructType<N>
where N: Network,