Trait CatNative

Source
pub trait CatNative {
    // Required methods
    fn as_cat(&self) -> u32;
    fn from_cat(cat: u32) -> Self;
}

Required Methods§

Source

fn as_cat(&self) -> u32

Source

fn from_cat(cat: u32) -> Self

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 CatNative for u8

Source§

fn as_cat(&self) -> u32

Source§

fn from_cat(cat: u32) -> u8

Source§

impl CatNative for u16

Source§

fn as_cat(&self) -> u32

Source§

fn from_cat(cat: u32) -> u16

Source§

impl CatNative for u32

Source§

fn as_cat(&self) -> u32

Source§

fn from_cat(cat: u32) -> u32

Implementors§