#[repr(C)]pub struct duckdb_varint {
pub data: *mut u8,
pub size: idx_t,
pub is_negative: bool,
}
Expand description
! VARINTs are composed of a byte pointer, a size, and an is_negative bool.
! The absolute value of the number is stored in data
in little endian format.
! You must free data
with duckdb_free
.
Fields§
§data: *mut u8
§size: idx_t
§is_negative: bool
Trait Implementations§
Source§impl Clone for duckdb_varint
impl Clone for duckdb_varint
Source§fn clone(&self) -> duckdb_varint
fn clone(&self) -> duckdb_varint
Returns a duplicate of the value. Read more
1.0.0 · Source§const fn clone_from(&mut self, source: &Self)
const fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreSource§impl Debug for duckdb_varint
impl Debug for duckdb_varint
impl Copy for duckdb_varint
Auto Trait Implementations§
impl Freeze for duckdb_varint
impl RefUnwindSafe for duckdb_varint
impl !Send for duckdb_varint
impl !Sync for duckdb_varint
impl Unpin for duckdb_varint
impl UnwindSafe for duckdb_varint
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