pub struct StringWriter(pub *mut c_char, pub usize);Expand description
An implementation of Write/core::fmt::Write for a byte array.
Tuple Fields§
§0: *mut c_char§1: usizeTrait Implementations§
Source§impl Write for StringWriter
impl Write for StringWriter
Source§fn write(&mut self, buf: &[u8]) -> Result<usize>
fn write(&mut self, buf: &[u8]) -> Result<usize>
Write a buffer into this object, returning how many bytes were written. Read more
Source§fn flush(&mut self) -> Result<()>
fn flush(&mut self) -> Result<()>
Flush this output stream, ensuring that all intermediately buffered
contents reach their destination. Read more
Source§fn write_all(&mut self, buf: &[u8]) -> Result<()>
fn write_all(&mut self, buf: &[u8]) -> Result<()>
Attempts to write an entire buffer into this write. Read more
Auto Trait Implementations§
impl Freeze for StringWriter
impl RefUnwindSafe for StringWriter
impl !Send for StringWriter
impl !Sync for StringWriter
impl Unpin for StringWriter
impl UnsafeUnpin for StringWriter
impl UnwindSafe for StringWriter
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