#[repr(C)]pub struct DecContext {
pub digits: i32,
pub emax: i32,
pub emin: i32,
pub round: u32,
pub traps: u32,
pub status: u32,
pub clamp: u8,
}Expand description
Decimal context.
Fields§
§digits: i32Working precision.
emax: i32Maximum positive exponent.
emin: i32Minimum negative exponent.
round: u32Rounding mode.
traps: u32Trap-enabler flags.
status: u32Status flags.
clamp: u8Flag: apply IEEE exponent clamp.
Trait Implementations§
Source§impl Clone for DecContext
impl Clone for DecContext
Source§fn clone(&self) -> DecContext
fn clone(&self) -> DecContext
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Copy for DecContext
Source§impl Debug for DecContext
impl Debug for DecContext
Source§impl Default for DecContext
impl Default for DecContext
Source§fn default() -> DecContext
fn default() -> DecContext
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for DecContext
impl RefUnwindSafe for DecContext
impl Send for DecContext
impl Sync for DecContext
impl Unpin for DecContext
impl UnsafeUnpin for DecContext
impl UnwindSafe for DecContext
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