pub enum GetShared {
Arc(Arc<Box<[u8]>>),
Bytes(Vec<u8>),
}Expand description
Owned GET result for the FFI zero-copy shared lane
(Store::get_shared_owned). Bulk values ride out as an Arc clone (no
byte copy); small values as a plain Vec (one alloc — cheaper than a fresh
Arc). The FFI’s shared free reconstructs whichever the tag says.
Variants§
Arc(Arc<Box<[u8]>>)
Bulk value — the engine’s Arc, cloned. Zero byte copy.
Bytes(Vec<u8>)
Small value (Str/Int) — a plain owned Vec, one allocation.
Auto Trait Implementations§
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