[][src]Trait softposit::Quire

pub trait Quire<P> {
type Bits;
    fn init() -> Self;
fn from_posit(p: P) -> Self;
fn to_posit(self) -> P;
fn from_bits(v: Self::Bits) -> Self;
fn to_bits(&self) -> Self::Bits;
fn is_zero(&self) -> bool;
fn is_nar(&self) -> bool;
fn add_product(&mut self, p_a: P, p_b: P);
fn sub_product(&mut self, p_a: P, p_b: P);
fn clear(&mut self);
fn neg(&mut self); }

Associated Types

type Bits

Loading content...

Required methods

fn init() -> Self

fn from_posit(p: P) -> Self

fn to_posit(self) -> P

fn from_bits(v: Self::Bits) -> Self

fn to_bits(&self) -> Self::Bits

fn is_zero(&self) -> bool

fn is_nar(&self) -> bool

fn add_product(&mut self, p_a: P, p_b: P)

fn sub_product(&mut self, p_a: P, p_b: P)

fn clear(&mut self)

fn neg(&mut self)

Loading content...

Implementors

impl Quire<P16E1> for Q16E1[src]

type Bits = [u64; 2]

impl Quire<P32E2> for Q32E2[src]

type Bits = [u64; 8]

impl Quire<P8E0> for Q8E0[src]

type Bits = u32

Loading content...