Trait IntDType

Source
pub trait IntDType: WithDType {
    // Required methods
    fn is_true(&self) -> bool;
    fn as_usize(&self) -> usize;
}

Required Methods§

Source

fn is_true(&self) -> bool

Source

fn as_usize(&self) -> usize

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 IntDType for i64

Source§

fn is_true(&self) -> bool

Source§

fn as_usize(&self) -> usize

Source§

impl IntDType for u8

Source§

fn is_true(&self) -> bool

Source§

fn as_usize(&self) -> usize

Source§

impl IntDType for u32

Source§

fn is_true(&self) -> bool

Source§

fn as_usize(&self) -> usize

Implementors§