Struct Decoded

pub struct Decoded { pub mant: u64, pub minus: u64, pub plus: u64, pub exp: i16, pub inclusive: bool }

Decoded unsigned finite value, such that:

Fields

mant: u64

The scaled mantissa.

minus: u64

The lower error range.

plus: u64

The upper error range.

exp: i16

The shared exponent in base 2.

inclusive: bool

True when the error range is inclusive.

In IEEE 754, this is true when the original mantissa was even.

Trait Implementations

impl Clone for Decoded

fn clone(&self) -> Decoded

impl Copy for Decoded

impl Debug for Decoded

fn fmt(&self, f: &mut Formatter<'_>) -> Result

impl Eq for Decoded

fn assert_fields_are_eq(&self)

impl PartialEq for Decoded

fn eq(&self, other: &Decoded) -> bool

impl StructuralPartialEq for Decoded

impl TrivialClone for Decoded

Auto Trait Implementations

impl Freeze for Decoded

impl RefUnwindSafe for Decoded

impl Send for Decoded

impl Sync for Decoded

impl Unpin for Decoded

impl UnsafeUnpin for Decoded

impl UnwindSafe for Decoded

Blanket Implementations

impl<T> Any for Decoded where T: 'static + ?Sized,

fn type_id(&self) -> TypeId

impl<T> Borrow<T> for Decoded where T: ?Sized,

fn borrow(&self) -> &T

impl<T> BorrowMut<T> for Decoded where T: ?Sized,

fn borrow_mut(&mut self) -> &mut T

impl<T> CloneToUninit for Decoded where T: Clone,

unsafe fn clone_to_uninit(&self, dest: *mut u8)

impl<T> From<T> for Decoded

fn from(t: T) -> T

Returns the argument unchanged.

impl<T> Printable for Decoded where T: Copy + Debug,

impl<T> SizeHint for Decoded where T: ?Sized,

fn lower_bound(&self) -> usize
fn upper_bound(&self) -> Option<usize>

impl<T> SizedTypeProperties for Decoded

impl<T, U> Into<U> for Decoded where U: From<T>,

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of [From]<T> for U chooses to do.

impl<T, U> TryFrom<U> for Decoded where U: Into<T>,

type Error = Infallible;
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

impl<T, U> TryInto<U> for Decoded where U: TryFrom<T>,

type Error = <U as TryFrom<T>>::Error;
fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>