pub struct StringPool { /* private fields */ }Expand description
Optimized string pool for command strings
Implementations§
Source§impl StringPool
impl StringPool
pub fn new(max_pool_size: usize) -> Self
pub fn get_string(&self, min_capacity: usize) -> PooledString
Trait Implementations§
Auto Trait Implementations§
impl Forget for StringPool
impl Freeze for StringPool
impl Move for StringPool
impl RefUnwindSafe for StringPool
impl Send for StringPool
impl Sync for StringPool
impl Unpin for StringPool
impl UnsafeUnpin for StringPool
impl UnwindSafe for StringPool
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