Struct quick_protobuf::writer::BytesWriter
source · pub struct BytesWriter<'a> { /* private fields */ }
Expand description
A writer backend for byte buffers
Implementations
sourceimpl<'a> BytesWriter<'a>
impl<'a> BytesWriter<'a>
sourcepub fn new(buf: &'a mut [u8]) -> BytesWriter<'a>
pub fn new(buf: &'a mut [u8]) -> BytesWriter<'a>
Create a new BytesWriter to write into buf
Trait Implementations
sourceimpl<'a> WriterBackend for BytesWriter<'a>
impl<'a> WriterBackend for BytesWriter<'a>
sourcefn pb_write_u8(&mut self, x: u8) -> Result<()>
fn pb_write_u8(&mut self, x: u8) -> Result<()>
Write a u8
sourcefn pb_write_u32(&mut self, x: u32) -> Result<()>
fn pb_write_u32(&mut self, x: u32) -> Result<()>
Write a u32
sourcefn pb_write_i32(&mut self, x: i32) -> Result<()>
fn pb_write_i32(&mut self, x: i32) -> Result<()>
Write a i32
sourcefn pb_write_f32(&mut self, x: f32) -> Result<()>
fn pb_write_f32(&mut self, x: f32) -> Result<()>
Write a f32
sourcefn pb_write_u64(&mut self, x: u64) -> Result<()>
fn pb_write_u64(&mut self, x: u64) -> Result<()>
Write a u64
sourcefn pb_write_i64(&mut self, x: i64) -> Result<()>
fn pb_write_i64(&mut self, x: i64) -> Result<()>
Write a i64
sourcefn pb_write_f64(&mut self, x: f64) -> Result<()>
fn pb_write_f64(&mut self, x: f64) -> Result<()>
Write a f64
sourcefn pb_write_all(&mut self, buf: &[u8]) -> Result<()>
fn pb_write_all(&mut self, buf: &[u8]) -> Result<()>
Write all bytes in buf
Auto Trait Implementations
impl<'a> RefUnwindSafe for BytesWriter<'a>
impl<'a> Send for BytesWriter<'a>
impl<'a> Sync for BytesWriter<'a>
impl<'a> Unpin for BytesWriter<'a>
impl<'a> !UnwindSafe for BytesWriter<'a>
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more