Skip to main content

PoolString

Trait PoolString 

Source
pub trait PoolString {
    // Required methods
    fn pool_as_str(&self) -> &str;
    fn move_to_slot(self, slot: &mut String);
    fn push_to_pool(self, str_pool: &mut StringPool);
    fn str_len(&self) -> usize;
}

Required Methods§

Source

fn pool_as_str(&self) -> &str

Source

fn move_to_slot(self, slot: &mut String)

Source

fn push_to_pool(self, str_pool: &mut StringPool)

Source

fn str_len(&self) -> usize

Dyn Compatibility§

This trait is dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementations on Foreign Types§

Source§

impl PoolString for &str

Source§

fn pool_as_str(&self) -> &str

Source§

fn move_to_slot(self, slot: &mut String)

Source§

fn push_to_pool(self, string_pool: &mut StringPool)

Source§

fn str_len(&self) -> usize

Source§

impl PoolString for String

Source§

fn pool_as_str(&self) -> &str

Source§

fn move_to_slot(self, slot: &mut String)

Source§

fn push_to_pool(self, pool: &mut StringPool)

Source§

fn str_len(&self) -> usize

Implementors§