pub struct Mag { /* private fields */ }
Implementations§
Source§impl Mag
impl Mag
pub fn zero() -> Self
pub fn one() -> Self
pub fn zero_assign(&mut self)
pub fn one_assign(&mut self)
pub fn is_zero(&self) -> bool
pub const fn as_ptr(&self) -> *const mag_struct
pub fn as_mut_ptr(&mut self) -> *mut mag_struct
pub const unsafe fn from_raw(inner: mag_struct) -> Self
pub const fn into_raw(self) -> mag_struct
Sourcepub fn mantissa_exponent(&self) -> (u64, Integer)
pub fn mantissa_exponent(&self) -> (u64, Integer)
Return the mantissa m
and exponent exp
such that x = m*2^exp
.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Mag
impl RefUnwindSafe for Mag
impl Send for Mag
impl Sync for Mag
impl Unpin for Mag
impl UnwindSafe for Mag
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more