pub struct UStr { /* private fields */ }
Expand description
UTF-8 string that does not contain nul values, and is stored with nul termination for easy conversion to CStr.
This string is valid even when Arena
is dropped, because it holds a weak arena reference
which does not return memory back to Memory
as long as it is alive. That said, make sure to
drop all these strings to reclaim the memory.
Implementations§
Trait Implementations§
impl Eq for UStr
Auto Trait Implementations§
impl Freeze for UStr
impl RefUnwindSafe for UStr
impl !Send for UStr
impl !Sync for UStr
impl Unpin for UStr
impl UnwindSafe for UStr
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more