pub struct Buf {
pub inner: Wtf8Buf,
}
Fields§
§inner: Wtf8Buf
Implementations§
source§impl Buf
impl Buf
pub fn with_capacity(capacity: usize) -> Buf
pub fn clear(&mut self)
pub fn capacity(&self) -> usize
pub fn from_string(s: String) -> Buf
pub fn as_slice(&self) -> &Slice
pub fn as_mut_slice(&mut self) -> &mut Slice
pub fn into_string(self) -> Result<String, Buf>
pub fn push_slice(&mut self, s: &Slice)
pub fn reserve(&mut self, additional: usize)
pub fn try_reserve(&mut self, additional: usize) -> Result<(), TryReserveError>
pub fn reserve_exact(&mut self, additional: usize)
pub fn try_reserve_exact( &mut self, additional: usize ) -> Result<(), TryReserveError>
pub fn shrink_to_fit(&mut self)
pub fn shrink_to(&mut self, min_capacity: usize)
pub fn into_box(self) -> Box<Slice>
pub fn from_box(boxed: Box<Slice>) -> Buf
pub fn into_arc(&self) -> Arc<Slice>
pub fn into_rc(&self) -> Rc<Slice>
Trait Implementations§
Auto Trait Implementations§
impl RefUnwindSafe for Buf
impl Send for Buf
impl Sync for Buf
impl Unpin for Buf
impl UnwindSafe for Buf
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