Trait OpArgType

Source
pub trait OpArgType: Copy {
    // Required methods
    fn from_op_arg(x: u32) -> Option<Self>;
    fn to_op_arg(self) -> u32;
}

Required Methods§

Source

fn from_op_arg(x: u32) -> Option<Self>

Source

fn to_op_arg(self) -> u32

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 OpArgType for bool

Source§

impl OpArgType for u32

Implementors§