pub struct ShortPool<'s> { /* private fields */ }Expand description
Short bytes pool
Implementations§
Source§impl<'s> ShortPool<'s>
impl<'s> ShortPool<'s>
pub fn new(entry: String) -> ShortPool<'s>
pub fn insert(&mut self, value: &'s [u8]) -> ShortId
pub fn insert_cow(&mut self, value: Cow<'s, [u8]>) -> ShortId
pub fn get(&self, id: ShortId) -> &[u8] ⓘ
pub fn codegen( self, builder: &mut CodeBuilder<'_>, writer: &mut dyn Write, ) -> Result<()>
Auto Trait Implementations§
impl<'s> Freeze for ShortPool<'s>
impl<'s> RefUnwindSafe for ShortPool<'s>
impl<'s> Send for ShortPool<'s>
impl<'s> Sync for ShortPool<'s>
impl<'s> Unpin for ShortPool<'s>
impl<'s> UnwindSafe for ShortPool<'s>
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