#[repr(C)]pub struct __wt_item {
pub data: *const c_void,
pub size: usize,
pub mem: *mut c_void,
pub memsize: usize,
pub flags: u32,
}Expand description
A raw item of data to be managed, including a pointer to the data and a length.
WT_ITEM structures do not need to be cleared before use.
Fields§
§data: *const c_voidThe memory reference of the data item.
For items returned by a WT_CURSOR, the pointer is only valid until the next operation on that cursor. Applications that need to keep an item across multiple cursor operations must make a copy.
size: usizeThe number of bytes in the data item.
The maximum length of a single column stored in a table is not fixed (as it partially depends on the underlying file configuration), but is always a small number of bytes less than 4GB.
mem: *mut c_voidManaged memory chunk (internal use).
memsize: usizeManaged memory size (internal use).
flags: u32Trait Implementations§
Auto Trait Implementations§
impl Freeze for __wt_item
impl RefUnwindSafe for __wt_item
impl !Send for __wt_item
impl !Sync for __wt_item
impl Unpin for __wt_item
impl UnwindSafe for __wt_item
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