IsPrimitive

Trait IsPrimitive 

Source
pub trait IsPrimitive: Copy {
    const TY: Ty;

    // Provided method
    fn is_primitive(&self) -> bool { ... }
}

Required Associated Constants§

Source

const TY: Ty

Provided Methods§

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 IsPrimitive for IBigInt

Source§

const TY: Ty = Ty::BigInt

Source§

impl IsPrimitive for IBool

Source§

const TY: Ty = Ty::Bool

Source§

impl IsPrimitive for IDecimal

Source§

const TY: Ty = Ty::Decimal

Source§

impl IsPrimitive for IDouble

Source§

const TY: Ty = Ty::Double

Source§

impl IsPrimitive for IFloat

Source§

const TY: Ty = Ty::Float

Source§

impl IsPrimitive for IInt

Source§

const TY: Ty = Ty::Int

Source§

impl IsPrimitive for ISmallInt

Source§

const TY: Ty = Ty::SmallInt

Source§

impl IsPrimitive for ITinyInt

Source§

const TY: Ty = Ty::TinyInt

Source§

impl IsPrimitive for IUBigInt

Source§

const TY: Ty = Ty::UBigInt

Source§

impl IsPrimitive for IUInt

Source§

const TY: Ty = Ty::UInt

Source§

impl IsPrimitive for IUSmallInt

Source§

const TY: Ty = Ty::USmallInt

Source§

impl IsPrimitive for IUTinyInt

Source§

const TY: Ty = Ty::UTinyInt