pub struct GlobalPool;
Expand description
The default, global string pool
Trait Implementations§
Source§impl Clone for GlobalPool
impl Clone for GlobalPool
Source§fn clone(&self) -> GlobalPool
fn clone(&self) -> GlobalPool
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreSource§impl<'h> Equivalent<<GlobalPool as Pool>::Raw> for SlicesWrap<'h>
impl<'h> Equivalent<<GlobalPool as Pool>::Raw> for SlicesWrap<'h>
Source§fn equivalent(&self, key: &<GlobalPool as Pool>::Raw) -> bool
fn equivalent(&self, key: &<GlobalPool as Pool>::Raw) -> bool
Checks if this value is equivalent to the given key. Read more
Source§impl Pool for GlobalPool
impl Pool for GlobalPool
type Raw = Arc<SliceHashWrap>
Source§unsafe fn raw_from_slices(&self, slices: SlicesWrap<'_>) -> Self::Raw
unsafe fn raw_from_slices(&self, slices: SlicesWrap<'_>) -> Self::Raw
Safety Read more
fn raw_to_slice<'r>(&self, raw: &'r Self::Raw) -> &'r [u8] ⓘ
Source§fn raw_clone(&self, raw: &Self::Raw) -> Self::Raw
fn raw_clone(&self, raw: &Self::Raw) -> Self::Raw
note to implementors: The default implementation
of this function is usually enough; however this can be overridden
for optimisation reasons.
Source§unsafe fn raw_from_slice(&self, slice: &[u8]) -> Self::Raw
unsafe fn raw_from_slice(&self, slice: &[u8]) -> Self::Raw
note to implementors: The default implementation
of this function is usually enough; however this can be overridden
for optimisation reasons. Read more
Source§unsafe fn raw_from_vec(&self, vec: Vec<u8>) -> Self::Raw
unsafe fn raw_from_vec(&self, vec: Vec<u8>) -> Self::Raw
note to implementors: The default implementation
of this function is usually enough; however this can be overridden
for optimisation reasons. Read more
Source§fn raw_empty(&self) -> Self::Raw
fn raw_empty(&self) -> Self::Raw
note to implementors: The default implementation
of this function is usually enough; however this can be overridden
for optimisation reasons.
Auto Trait Implementations§
impl Freeze for GlobalPool
impl RefUnwindSafe for GlobalPool
impl Send for GlobalPool
impl Sync for GlobalPool
impl Unpin for GlobalPool
impl UnwindSafe for GlobalPool
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