[][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...

Implementors

impl<D, I> Pattern<D> for I where
    I: Default + Hash + PrimInt + AsPrimitive<u8> + 'static,
    u8: AsPrimitive<I>,
    D: AsPrimitive<u32>,
    u8: AsPrimitive<D>, 
[src]

Loading content...