Skip to main content

CatNative

Trait CatNative 

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

Required Methods§

fn as_cat(&self) -> u32

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".

Implementations on Foreign Types§

§

impl CatNative for u8

§

fn as_cat(&self) -> u32

§

fn from_cat(cat: u32) -> u8

§

impl CatNative for u16

§

fn as_cat(&self) -> u32

§

fn from_cat(cat: u32) -> u16

§

impl CatNative for u32

§

fn as_cat(&self) -> u32

§

fn from_cat(cat: u32) -> u32

Implementors§