[][src]Trait pour::Pattern

pub trait Pattern<D>: Eq + Hash + Copy + Clone + Default {
    const MAX_BITS: usize;

    fn max_bits() -> D;
fn byte(self, n: D) -> u8;
fn diff(self, other: Self) -> D; }

An n-bit pattern

Associated Constants

const MAX_BITS: usize

Get the maximum bitdepth of this pattern

Loading content...

Required methods

fn max_bits() -> D

Get this pattern's max bits as a depth type

fn byte(self, n: D) -> u8

Get the nth byte of this pattern at a given bitdepth

fn diff(self, other: Self) -> D

Get the bit difference between this pattern and another

Loading content...

Implementations on Foreign Types

impl<D> Pattern<D> for u64 where
    D: AsPrimitive<usize>,
    u8: AsPrimitive<D>, 
[src]

Loading content...

Implementors

Loading content...