pub struct RawParts<Offset: OffsetType> {
pub data_ptr: *const u8,
pub offsets_ptr: *const Offset,
pub data_len: usize,
pub items_count: usize,
}Expand description
Named raw parts returned by as_raw_parts methods.
Fields§
§data_ptr: *const u8Pointer to the start of the contiguous data buffer.
offsets_ptr: *const OffsetPointer to the start of the offsets buffer.
data_len: usizeNumber of bytes of valid data in data_ptr.
items_count: usizeNumber of items stored (strings/bytes entries).
Trait Implementations§
impl<Offset: Copy + OffsetType> Copy for RawParts<Offset>
impl<Offset: Eq + OffsetType> Eq for RawParts<Offset>
impl<Offset: OffsetType> StructuralPartialEq for RawParts<Offset>
Auto Trait Implementations§
impl<Offset> Freeze for RawParts<Offset>
impl<Offset> RefUnwindSafe for RawParts<Offset>where
Offset: RefUnwindSafe,
impl<Offset> !Send for RawParts<Offset>
impl<Offset> !Sync for RawParts<Offset>
impl<Offset> Unpin for RawParts<Offset>
impl<Offset> UnwindSafe for RawParts<Offset>where
Offset: RefUnwindSafe,
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