[−][src]Struct softposit::p16e1::Q16E1
Methods
impl Q16E1
[src]
pub const ZERO: Self
[src]
pub const ONE: Self
[src]
pub const NAR: Self
[src]
pub const fn init() -> Self
[src]
pub fn from_posit(p: P16E1) -> Self
[src]
pub fn from_bits(v: [u64; 2]) -> Self
[src]
pub fn to_bits(&self) -> [u64; 2]
[src]
pub fn is_zero(&self) -> bool
[src]
pub fn is_nar(&self) -> bool
[src]
pub fn add_product(&mut self, p_a: P16E1, p_b: P16E1)
[src]
pub fn sub_product(&mut self, p_a: P16E1, p_b: P16E1)
[src]
pub fn to_posit(self) -> P16E1
[src]
pub fn clear(&mut self)
[src]
pub fn neg(&mut self)
[src]
Trait Implementations
impl Quire<P16E1> for Q16E1
[src]
type Bits = [u64; 2]
fn init() -> Self
[src]
fn from_posit(p: P16E1) -> Self
[src]
fn to_posit(self) -> P16E1
[src]
fn from_bits(v: Self::Bits) -> Self
[src]
fn to_bits(&self) -> Self::Bits
[src]
fn is_zero(&self) -> bool
[src]
fn is_nar(&self) -> bool
[src]
fn add_product(&mut self, p_a: P16E1, p_b: P16E1)
[src]
fn sub_product(&mut self, p_a: P16E1, p_b: P16E1)
[src]
fn clear(&mut self)
[src]
fn neg(&mut self)
[src]
impl AddAssign<(P16E1, P16E1)> for Q16E1
[src]
impl SubAssign<(P16E1, P16E1)> for Q16E1
[src]
impl Debug for Q16E1
[src]
impl Display for Q16E1
[src]
impl From<P16E1> for Q16E1
[src]
impl From<Q16E1> for P16E1
[src]
impl Clone for Q16E1
[src]
Auto Trait Implementations
Blanket Implementations
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> From<T> for T
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error
The type returned in the event of a conversion error.
fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>
[src]
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
fn to_owned(&self) -> T
[src]
fn clone_into(&self, target: &mut T)
[src]
impl<T> ToString for T where
T: Display + ?Sized,
[src]
T: Display + ?Sized,
impl<SS, SP> SupersetOf<SS> for SP where
SS: SubsetOf<SP>,
[src]
SS: SubsetOf<SP>,
fn to_subset(&self) -> Option<SS>
[src]
fn is_in_subset(&self) -> bool
[src]
unsafe fn to_subset_unchecked(&self) -> SS
[src]
fn from_subset(element: &SS) -> SP
[src]
impl<T> Same<T> for T
type Output = T
Should always be Self