Trait zerogc::array::ConstStringAccess
source · [−]pub trait ConstStringAccess<'gc> {
fn as_bytes_const(&self) -> &'gc [u8]ⓘNotable traits for &'_ [u8]impl Read for &'_ [u8]impl Write for &'_ mut [u8]
;
fn as_str_const(&self) -> &'gc str;
fn len_const(&self) -> usize;
}
Expand description
Const access to GcString
Required methods
Get this string as a slice of bytes
fn as_str_const(&self) -> &'gc str
fn as_str_const(&self) -> &'gc str
Convert this string to a str
slice