pub trait StringBufferTrait {
    // Required methods
    fn as_str(&self) -> &str;
    fn as_string(&self) -> String;
}
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

Implementations on Foreign Types§

source§

impl StringBufferTrait for &str

source§

fn as_str(&self) -> &str

source§

fn as_string(&self) -> String

source§

impl StringBufferTrait for String

source§

fn as_str(&self) -> &str

source§

fn as_string(&self) -> String

Implementors§