Struct mariadb_sys::my_decimal
source · #[repr(C)]pub struct my_decimal {
pub _base: decimal_t,
pub foo1: c_int,
pub buffer: [decimal_digit_t; 9],
pub foo2: c_int,
}
Expand description
my_decimal class limits ‘decimal_t’ type to what we need in MySQL.
It contains internally all necessary space needed by the instance so no extra memory is needed. One should call fix_buffer_pointer() function when he moves my_decimal objects in memory.
Fields§
§_base: decimal_t
§foo1: c_int
§buffer: [decimal_digit_t; 9]
§foo2: c_int
Implementations§
source§impl my_decimal
impl my_decimal
pub unsafe fn to_longlong(&self, unsigned_flag: bool) -> longlong
pub unsafe fn to_string_native( &self, to: *mut String, prec: uint, dec: uint, filler: c_char, mask: uint ) -> c_int
pub unsafe fn to_binary( &self, bin: *mut uchar, prec: c_int, scale: decimal_digits_t, mask: uint ) -> c_int
pub unsafe fn new(field: *mut Field) -> Self
Trait Implementations§
Auto Trait Implementations§
impl RefUnwindSafe for my_decimal
impl !Send for my_decimal
impl !Sync for my_decimal
impl Unpin for my_decimal
impl UnwindSafe for my_decimal
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