Trait StringBufferTrait

Source
pub trait StringBufferTrait {
    // Required methods
    fn as_str(&self) -> &str;
    fn as_string(&self) -> String;
    fn as_arc(&self) -> Arc<str>;
}
Expand description

A trait for StringBuffer

Required Methods§

Source

fn as_str(&self) -> &str

Returns the string as &str

Source

fn as_string(&self) -> String

Returns the string as String

Source

fn as_arc(&self) -> Arc<str>

Returns Arc for ease of computation

Implementations on Foreign Types§

Source§

impl StringBufferTrait for &str

Source§

fn as_str(&self) -> &str

Source§

fn as_string(&self) -> String

Source§

fn as_arc(&self) -> Arc<str>

Source§

impl StringBufferTrait for String

Source§

fn as_str(&self) -> &str

Source§

fn as_string(&self) -> String

Source§

fn as_arc(&self) -> Arc<str>

Implementors§