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]
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
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> EncodeBoxedAbiType for T where
T: UniqueTagged,
[src]
impl<T> EncodeBoxedAbiType for T where
T: UniqueTagged,
[src]pub const BOXED_ABI_TYPE: BoxedAbiType
[src]
impl<T> HashInHeap for T where
T: Hash,
[src]
impl<T> HashInHeap for T where
T: Hash,
[src]impl<T> PartialEqInHeap for T where
T: PartialEq<T>,
[src]
impl<T> PartialEqInHeap for T where
T: PartialEq<T>,
[src]