pub struct StringBuilder<'buffer> { /* private fields */ }Expand description
A helper type to safely build a string in the buffer from multiple pieces.
It takes an exclusive reference to the buffer and clears everything in the buffer before we start building. This guarantees that upon finishing, the buffer contains only what we wrote to it.
Implementations§
Auto Trait Implementations§
impl<'buffer> Freeze for StringBuilder<'buffer>
impl<'buffer> RefUnwindSafe for StringBuilder<'buffer>
impl<'buffer> Send for StringBuilder<'buffer>
impl<'buffer> Sync for StringBuilder<'buffer>
impl<'buffer> Unpin for StringBuilder<'buffer>
impl<'buffer> !UnwindSafe for StringBuilder<'buffer>
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