Struct arret_runtime::boxed::Str[][src]

#[repr(C, align(16))]
pub struct Str { /* fields omitted */ }

String value encoded as UTF-8

Implementations

impl Str[src]

pub const MAX_INLINE_BYTES: usize[src]

Maximum number of bytes that can be stored directly in the box

pub const EXTERNAL_INLINE_BYTE_LEN: u8[src]

Inline byte length used for external strings

pub fn new(heap: &mut impl AsHeap, value: &str) -> Gc<Str>[src]

Constructs a new string

pub fn storage_for_byte_len(len: usize) -> StrStorage[src]

Returns the storage for given string byte length

pub fn as_str(&self) -> &str[src]

Returns the string’s content as a slice

Trait Implementations

impl Boxed for Str[src]

impl ConstTagged for Str[src]

impl Debug for Str[src]

impl DistinctTagged for Str[src]

impl Drop for Str[src]

impl Hash for Str[src]

impl PartialEq<Str> for Str[src]

impl UniqueTagged for Str[src]

Auto Trait Implementations

impl RefUnwindSafe for Str

impl Send for Str

impl Sync for Str

impl Unpin for Str

impl UnwindSafe for Str

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> EncodeBoxedAbiType for T where
    T: UniqueTagged
[src]

impl<T> From<T> for T[src]

impl<T> HashInHeap for T where
    T: Hash
[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> PartialEqInHeap for T where
    T: PartialEq<T>, 
[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.