Skip to main content

VariantType

Trait VariantType 

Source
pub trait VariantType {
    // Required method
    fn variant_type_id() -> VariantScalarTypeId;
}
Expand description

A Rust type with one built-in scalar representation on the wire.

Required Methods§

Source

fn variant_type_id() -> VariantScalarTypeId

Built-in type identifier used when declaring a variable or array element.

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementations on Foreign Types§

Source§

impl VariantType for &str

Source§

impl VariantType for String

Source§

impl VariantType for bool

Source§

impl VariantType for f32

Source§

impl VariantType for f64

Source§

impl VariantType for i8

Source§

impl VariantType for i16

Source§

impl VariantType for i32

Source§

impl VariantType for i64

Source§

impl VariantType for u8

Source§

impl VariantType for u16

Source§

impl VariantType for u32

Source§

impl VariantType for u64

Implementors§