pub struct StringRef {
pub offset: u32,
pub len: u32,
}Expand description
Position-independent reference to a string in a SharedStringArena.
Encoded as a u64 (offset:u32, len:u32) for stable cross-process
passing (the same u64 resolves to the same bytes in every process
that maps the arena).
Fields§
§offset: u32§len: u32Implementations§
Trait Implementations§
impl Copy for StringRef
impl Eq for StringRef
impl StructuralPartialEq for StringRef
Auto Trait Implementations§
impl Freeze for StringRef
impl RefUnwindSafe for StringRef
impl Send for StringRef
impl Sync for StringRef
impl Unpin for StringRef
impl UnsafeUnpin for StringRef
impl UnwindSafe for StringRef
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