snarkvm_console_types_string

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<E> TypeName for Scalar<E>
where E: Environment,

Source§

fn type_name() -> &'static str

Returns the type name as a string.

Implementors§

Source§

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

Source§

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

Source§

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

Source§

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