#[repr(C)]pub struct StringOnDisk {
pub header: BlockHeader,
pub data: u64,
pub len: u64,
}Expand description
The on-disk image of a BStackString: header, a pointer to the UTF-8 bytes
block (0 = empty), and the byte length. #[repr(C)], u64 fields only —
fixed-size and non-generic, so the handle is a normal block.
Fields§
§header: BlockHeaderThe 16-byte block header (size + type tag).
data: u64Offset of the UTF-8 bytes block, or 0 when the string is empty.
len: u64Length of the string in bytes.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for StringOnDisk
impl RefUnwindSafe for StringOnDisk
impl Send for StringOnDisk
impl Sync for StringOnDisk
impl Unpin for StringOnDisk
impl UnsafeUnpin for StringOnDisk
impl UnwindSafe for StringOnDisk
Blanket Implementations§
impl<T> AnyBitPattern for Twhere
T: Pod,
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
Source§impl<T> CheckedBitPattern for Twhere
T: AnyBitPattern,
impl<T> CheckedBitPattern for Twhere
T: AnyBitPattern,
Source§type Bits = T
type Bits = T
Self must have the same layout as the specified Bits except for
the possible invalid bit patterns being checked during
is_valid_bit_pattern.Source§fn is_valid_bit_pattern(_bits: &T) -> bool
fn is_valid_bit_pattern(_bits: &T) -> bool
If this function returns true, then it must be valid to reinterpret
bits
as &Self.