Skip to main content

Number

Trait Number 

Source
pub trait Number {
    // Required methods
    fn add(&self, value: usize);
    fn get(&self) -> usize;
}

Required Methods§

Source

fn add(&self, value: usize)

Source

fn get(&self) -> usize

Dyn Compatibility§

This trait is dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementations on Foreign Types§

Source§

impl Number for IntCounter

Source§

fn add(&self, value: usize)

Source§

fn get(&self) -> usize

Implementors§