Trait avr_oxide::util::datatypes::BoundedMaths

source ·
pub trait BoundedMaths<T, R> {
    // Required method
    fn bsub_isolated<const BOUND: usize>(&self, isotoken: Isolated, rhs: T) -> R;

    // Provided method
    fn bsub<const BOUND: usize>(&self, rhs: T) -> R { ... }
}
Expand description

Trait for bounded maths operations with wraparound

Required Methods§

source

fn bsub_isolated<const BOUND: usize>(&self, isotoken: Isolated, rhs: T) -> R

Provided Methods§

source

fn bsub<const BOUND: usize>(&self, rhs: T) -> R

Object Safety§

This trait is not object safe.

Implementations on Foreign Types§

source§

impl BoundedMaths<u8, u8> for u8

source§

fn bsub<const BOUND: usize>(&self, rhs: u8) -> u8

source§

fn bsub_isolated<const BOUND: usize>(&self, _isotoken: Isolated, rhs: u8) -> u8

Implementors§