Trait ArrayCounter

Source
pub trait ArrayCounter: Serialize + Deserialize {
    // Required methods
    fn as_count(&self) -> usize;
    fn from_count(count: usize) -> Self;
}

Required Methods§

Source

fn as_count(&self) -> usize

Source

fn from_count(count: usize) -> 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 ArrayCounter for i8

Source§

fn as_count(&self) -> usize

Source§

fn from_count(count: usize) -> Self

Source§

impl ArrayCounter for i16

Source§

fn as_count(&self) -> usize

Source§

fn from_count(count: usize) -> Self

Source§

impl ArrayCounter for i32

Source§

fn as_count(&self) -> usize

Source§

fn from_count(count: usize) -> Self

Implementors§