Struct r_core::r_num_t[][src]

#[repr(C)]
pub struct r_num_t { pub callback: Option<unsafe extern "C" fn(userptr: *mut r_num_t, str_: *const c_char, ok: *mut c_int) -> c_ulonglong>, pub cb_from_value: Option<unsafe extern "C" fn(userptr: *mut r_num_t, value: c_ulonglong, ok: *mut c_int) -> *const c_char>, pub value: c_ulonglong, pub fvalue: f64, pub userptr: *mut c_void, pub dbz: c_int, pub nc: RNumCalc, }

Fields

callback: Option<unsafe extern "C" fn(userptr: *mut r_num_t, str_: *const c_char, ok: *mut c_int) -> c_ulonglong>cb_from_value: Option<unsafe extern "C" fn(userptr: *mut r_num_t, value: c_ulonglong, ok: *mut c_int) -> *const c_char>value: c_ulonglongfvalue: f64userptr: *mut c_voiddbz: c_intnc: RNumCalc

division by zero happened

Trait Implementations

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

Formats the value using the given formatter. Read more

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Performs the conversion.

Performs the conversion.

The resulting type after obtaining ownership.

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

🔬 This is a nightly-only experimental API. (toowned_clone_into)

recently added

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

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.