pub struct CBuffer { /* private fields */ }
Implementations§
source§impl CBuffer
impl CBuffer
pub fn new(ptr: *mut c_void, len: size_t) -> Self
pub unsafe fn clear(&mut self)
pub unsafe fn write_str(&mut self, string: &str) -> Result<*mut c_char>
pub unsafe fn write_strs<S: AsRef<str>>( &mut self, strings: &[S] ) -> Result<*mut *mut c_char>
pub unsafe fn reserve(&mut self, len: isize) -> Result<*mut c_char>
Auto Trait Implementations§
impl Freeze for CBuffer
impl RefUnwindSafe for CBuffer
impl !Send for CBuffer
impl !Sync for CBuffer
impl Unpin for CBuffer
impl UnwindSafe for CBuffer
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