Trait PrimitiveTypeTag

Source
pub trait PrimitiveTypeTag<T: Sized + Default> {
    // Required method
    fn validate_type_shape(shape: &PrimitiveTypeShape) -> bool;
}
Expand description

The tag trait indicates that this is a rust type which can be mapped into a Plumber language-neutral primitive type

Required Methods§

Source

fn validate_type_shape(shape: &PrimitiveTypeShape) -> bool

Validate the type shape

  • shape The type shape to validate

Return the validation result

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 PrimitiveTypeTag<f32> for f32

Source§

impl PrimitiveTypeTag<f64> for f64

Source§

impl PrimitiveTypeTag<i8> for i8

Source§

impl PrimitiveTypeTag<i16> for i16

Source§

impl PrimitiveTypeTag<i32> for i32

Source§

impl PrimitiveTypeTag<i64> for i64

Source§

impl PrimitiveTypeTag<u8> for u8

Source§

impl PrimitiveTypeTag<u16> for u16

Source§

impl PrimitiveTypeTag<u32> for u32

Source§

impl PrimitiveTypeTag<u64> for u64

Implementors§