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

Convert this string to a str slice

Get the length of this string (in bytes)

Implementors