pub struct StaticStrBuffer { /* private fields */ }
Expand description
Buffers management to store str
available until the end of program.
To get the str
available as &'static str
, the memory of buffers are leaked.
The leak append in a safe way (use std::vec::Vec::leak()
method on std::vec::Vec
)
Implementations§
Auto Trait Implementations§
impl !Freeze for StaticStrBuffer
impl RefUnwindSafe for StaticStrBuffer
impl Send for StaticStrBuffer
impl Sync for StaticStrBuffer
impl Unpin for StaticStrBuffer
impl UnwindSafe for StaticStrBuffer
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