pub struct Writer<'a> { /* private fields */ }Implementations§
Source§impl<'a> Writer<'a>
impl<'a> Writer<'a>
Sourcepub unsafe fn from_raw_parts(ptr: *mut u8, len: usize) -> Self
pub unsafe fn from_raw_parts(ptr: *mut u8, len: usize) -> Self
§Safety
ptrmust point tolenreadable and writable bytesptrmay be NULL only iflen == 0
pub fn capacity(&self) -> usize
pub fn is_null(&self) -> bool
pub fn is_empty(&self) -> bool
pub fn as_mut_ptr(&mut self) -> *mut u8
pub fn as_mut_ptr_range(&mut self) -> Range<*mut u8>
pub fn subslice<R: RangeBounds<usize>>(&mut self, range: R) -> Self
Trait Implementations§
Auto Trait Implementations§
impl<'a> !Send for Writer<'a>
impl<'a> !Sync for Writer<'a>
impl<'a> !UnwindSafe for Writer<'a>
impl<'a> Freeze for Writer<'a>
impl<'a> RefUnwindSafe for Writer<'a>
impl<'a> Unpin for Writer<'a>
impl<'a> UnsafeUnpin for Writer<'a>
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