Struct polars_core::IUseStringCache 
source · pub struct IUseStringCache { /* private fields */ }Available on crate feature 
dtype-categorical only.Expand description
RAII for the string cache
If an operation creates categoricals and uses them in a join
or comparison that operation must hold this cache via
let handle = IUseStringCache::hold()
The cache is valid until handle is dropped.
De-allocation
Multiple threads can hold the string cache at the same time. The contents of the cache will only get dropped when no thread holds it.
Implementations§
source§impl IUseStringCache
 
impl IUseStringCache
sourcepub fn hold() -> IUseStringCache
 
pub fn hold() -> IUseStringCache
Hold the StringCache
Trait Implementations§
source§impl Default for IUseStringCache
 
impl Default for IUseStringCache
Auto Trait Implementations§
impl RefUnwindSafe for IUseStringCache
impl Send for IUseStringCache
impl Sync for IUseStringCache
impl Unpin for IUseStringCache
impl UnwindSafe for IUseStringCache
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