IntHelp

Trait IntHelp 

Source
pub trait IntHelp: PrimInt + FromPrimitive {
    // Required methods
    fn reverse_by_twos(&self) -> Self;
    fn lower_of_two() -> Self;
}
Expand description

Trait for specialized integer operations used in DeBruijn Graph

Required Methods§

Source

fn reverse_by_twos(&self) -> Self

Reverse the order of 2-bit units of the integer

Source

fn lower_of_two() -> 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 IntHelp for u8

Source§

impl IntHelp for u16

Source§

impl IntHelp for u32

Source§

impl IntHelp for u64

Source§

impl IntHelp for u128

Implementors§