Struct Arf

Source
pub struct Arf { /* private fields */ }

Implementations§

Source§

impl Arf

Source

pub fn zero() -> Self

Source

pub fn one() -> Self

Source

pub fn zero_assign(&mut self)

Source

pub fn one_assign(&mut self)

Source

pub fn is_zero(&self) -> bool

Source

pub fn is_one(&self) -> bool

Source

pub const fn as_ptr(&self) -> *const arf_struct

Source

pub fn as_mut_ptr(&mut self) -> *mut arf_struct

Source

pub const unsafe fn from_raw(inner: arf_struct) -> Self

Source

pub const fn into_raw(self) -> arf_struct

Source

pub fn bits(&self) -> i64

Source

pub fn mantissa_exponent(&self) -> (Integer, Integer)

Return the mantissa m and exponent exp such that x = m*2^exp.

Trait Implementations§

Source§

impl AsRef<Arf> for Arf

Source§

fn as_ref(&self) -> &Arf

Converts this type into a shared reference of the (usually inferred) input type.
Source§

impl Assign<&Arf> for Real

Source§

fn assign(&mut self, src: &Arf)

Source§

impl Assign<&Arf> for Arf

Source§

fn assign(&mut self, src: &Arf)

Source§

impl Assign<&Integer> for Arf

Source§

fn assign(&mut self, src: &Integer)

Source§

impl Assign<&Mag> for Arf

Source§

fn assign(&mut self, src: &Mag)

Source§

impl Assign<&f32> for Arf

Source§

fn assign(&mut self, src: &f32)

Source§

impl Assign<&f64> for Arf

Source§

fn assign(&mut self, src: &f64)

Source§

impl Assign<&i16> for Arf

Source§

fn assign(&mut self, src: &i16)

Source§

impl Assign<&i32> for Arf

Source§

fn assign(&mut self, src: &i32)

Source§

impl Assign<&i64> for Arf

Source§

fn assign(&mut self, src: &i64)

Source§

impl Assign<&i8> for Arf

Source§

fn assign(&mut self, src: &i8)

Source§

impl Assign<&isize> for Arf

Source§

fn assign(&mut self, src: &isize)

Source§

impl Assign<&u16> for Arf

Source§

fn assign(&mut self, src: &u16)

Source§

impl Assign<&u32> for Arf

Source§

fn assign(&mut self, src: &u32)

Source§

impl Assign<&u64> for Arf

Source§

fn assign(&mut self, src: &u64)

Source§

impl Assign<&u8> for Arf

Source§

fn assign(&mut self, src: &u8)

Source§

impl Assign<&usize> for Arf

Source§

fn assign(&mut self, src: &usize)

Source§

impl Assign<Arf> for Real

Source§

fn assign(&mut self, src: Arf)

Source§

impl Assign<Integer> for Arf

Source§

fn assign(&mut self, src: Integer)

Source§

impl Assign<Mag> for Arf

Source§

fn assign(&mut self, src: Mag)

Source§

impl Assign<f32> for Arf

Source§

fn assign(&mut self, src: f32)

Source§

impl Assign<f64> for Arf

Source§

fn assign(&mut self, src: f64)

Source§

impl Assign<i16> for Arf

Source§

fn assign(&mut self, src: i16)

Source§

impl Assign<i32> for Arf

Source§

fn assign(&mut self, src: i32)

Source§

impl Assign<i64> for Arf

Source§

fn assign(&mut self, src: i64)

Source§

impl Assign<i8> for Arf

Source§

fn assign(&mut self, src: i8)

Source§

impl Assign<isize> for Arf

Source§

fn assign(&mut self, src: isize)

Source§

impl Assign<u16> for Arf

Source§

fn assign(&mut self, src: u16)

Source§

impl Assign<u32> for Arf

Source§

fn assign(&mut self, src: u32)

Source§

impl Assign<u64> for Arf

Source§

fn assign(&mut self, src: u64)

Source§

impl Assign<u8> for Arf

Source§

fn assign(&mut self, src: u8)

Source§

impl Assign<usize> for Arf

Source§

fn assign(&mut self, src: usize)

Source§

impl Assign for Arf

Source§

fn assign(&mut self, src: Arf)

Source§

impl Clone for Arf

Source§

fn clone(&self) -> Self

Returns a duplicate of the value. Read more
1.0.0 · Source§

const fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
Source§

impl Debug for Arf

Source§

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

Formats the value using the given formatter. Read more
Source§

impl Default for Arf

Source§

fn default() -> Self

Returns the “default value” for a type. Read more
Source§

impl Display for Arf

Source§

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

Formats the value using the given formatter. Read more
Source§

impl Drop for Arf

Source§

fn drop(&mut self)

Executes the destructor for this type. Read more
Source§

impl From<&Arf> for Real

Source§

fn from(src: &Arf) -> Real

Converts to this type from the input type.
Source§

impl From<&Integer> for Arf

Source§

fn from(src: &Integer) -> Arf

Converts to this type from the input type.
Source§

impl From<&Mag> for Arf

Source§

fn from(src: &Mag) -> Arf

Converts to this type from the input type.
Source§

impl From<&f32> for Arf

Source§

fn from(src: &f32) -> Arf

Converts to this type from the input type.
Source§

impl From<&f64> for Arf

Source§

fn from(src: &f64) -> Arf

Converts to this type from the input type.
Source§

impl From<&i16> for Arf

Source§

fn from(src: &i16) -> Arf

Converts to this type from the input type.
Source§

impl From<&i32> for Arf

Source§

fn from(src: &i32) -> Arf

Converts to this type from the input type.
Source§

impl From<&i64> for Arf

Source§

fn from(src: &i64) -> Arf

Converts to this type from the input type.
Source§

impl From<&i8> for Arf

Source§

fn from(src: &i8) -> Arf

Converts to this type from the input type.
Source§

impl From<&isize> for Arf

Source§

fn from(src: &isize) -> Arf

Converts to this type from the input type.
Source§

impl From<&u16> for Arf

Source§

fn from(src: &u16) -> Arf

Converts to this type from the input type.
Source§

impl From<&u32> for Arf

Source§

fn from(src: &u32) -> Arf

Converts to this type from the input type.
Source§

impl From<&u64> for Arf

Source§

fn from(src: &u64) -> Arf

Converts to this type from the input type.
Source§

impl From<&u8> for Arf

Source§

fn from(src: &u8) -> Arf

Converts to this type from the input type.
Source§

impl From<&usize> for Arf

Source§

fn from(src: &usize) -> Arf

Converts to this type from the input type.
Source§

impl From<Arf> for Real

Source§

fn from(src: Arf) -> Real

Converts to this type from the input type.
Source§

impl From<Integer> for Arf

Source§

fn from(src: Integer) -> Arf

Converts to this type from the input type.
Source§

impl From<Mag> for Arf

Source§

fn from(src: Mag) -> Arf

Converts to this type from the input type.
Source§

impl From<f32> for Arf

Source§

fn from(src: f32) -> Arf

Converts to this type from the input type.
Source§

impl From<f64> for Arf

Source§

fn from(src: f64) -> Arf

Converts to this type from the input type.
Source§

impl From<i16> for Arf

Source§

fn from(src: i16) -> Arf

Converts to this type from the input type.
Source§

impl From<i32> for Arf

Source§

fn from(src: i32) -> Arf

Converts to this type from the input type.
Source§

impl From<i64> for Arf

Source§

fn from(src: i64) -> Arf

Converts to this type from the input type.
Source§

impl From<i8> for Arf

Source§

fn from(src: i8) -> Arf

Converts to this type from the input type.
Source§

impl From<isize> for Arf

Source§

fn from(src: isize) -> Arf

Converts to this type from the input type.
Source§

impl From<u16> for Arf

Source§

fn from(src: u16) -> Arf

Converts to this type from the input type.
Source§

impl From<u32> for Arf

Source§

fn from(src: u32) -> Arf

Converts to this type from the input type.
Source§

impl From<u64> for Arf

Source§

fn from(src: u64) -> Arf

Converts to this type from the input type.
Source§

impl From<u8> for Arf

Source§

fn from(src: u8) -> Arf

Converts to this type from the input type.
Source§

impl From<usize> for Arf

Source§

fn from(src: usize) -> Arf

Converts to this type from the input type.
Source§

impl Hash for Arf

Source§

fn hash<H: Hasher>(&self, state: &mut H)

Feeds this value into the given Hasher. Read more
1.3.0 · Source§

fn hash_slice<H>(data: &[Self], state: &mut H)
where H: Hasher, Self: Sized,

Feeds a slice of this type into the given Hasher. Read more
Source§

impl New<&Arf> for Arf

Source§

fn new(src: &Arf) -> Self

Source§

impl<T: Into<Arf>> New<T> for Arf

Source§

fn new(src: T) -> Self

Auto Trait Implementations§

§

impl Freeze for Arf

§

impl RefUnwindSafe for Arf

§

impl !Send for Arf

§

impl !Sync for Arf

§

impl Unpin for Arf

§

impl UnwindSafe for Arf

Blanket Implementations§

Source§

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

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

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

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

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

Source§

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

Mutably borrows from an owned value. Read more
Source§

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

Source§

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

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dest. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

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

Source§

fn into(self) -> U

Calls U::from(self).

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

Source§

impl<T> ToOwned for T
where T: Clone,

Source§

type Owned = T

The resulting type after obtaining ownership.
Source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
Source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
Source§

impl<T> ToString for T
where T: Display + ?Sized,

Source§

fn to_string(&self) -> String

Converts the given value to a String. Read more
Source§

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

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

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

Performs the conversion.
Source§

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

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

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

Performs the conversion.