Struct expry::memorypool::ScopedStringBuilder
source · pub struct ScopedStringBuilder<'a, 'c> { /* private fields */ }
Implementations§
source§impl<'a, 'c> ScopedStringBuilder<'a, 'c>
impl<'a, 'c> ScopedStringBuilder<'a, 'c>
pub fn new(scope: &'a mut MemoryScope<'c>) -> Self
pub fn with_capacity( scope: &'a mut MemoryScope<'c>, size_in_bytes: usize ) -> Self
pub fn as_str(&mut self) -> &str
pub fn build<'b>(self) -> &'b mut strwhere
'c: 'b,
pub fn push_char(&mut self, c: char)
pub fn len(&self) -> usize
pub fn is_empty(&self) -> bool
Trait Implementations§
source§impl<'a, 'c> Drop for ScopedStringBuilder<'a, 'c>
impl<'a, 'c> Drop for ScopedStringBuilder<'a, 'c>
Auto Trait Implementations§
impl<'a, 'c> RefUnwindSafe for ScopedStringBuilder<'a, 'c>
impl<'a, 'c> !Send for ScopedStringBuilder<'a, 'c>
impl<'a, 'c> !Sync for ScopedStringBuilder<'a, 'c>
impl<'a, 'c> Unpin for ScopedStringBuilder<'a, 'c>
impl<'a, 'c> !UnwindSafe for ScopedStringBuilder<'a, 'c>
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