Trait blue_engine::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§