pub struct Writer { /* private fields */ }Implementations§
Source§impl Writer
impl Writer
pub fn new() -> Self
pub fn with_capacity(cap: usize) -> Self
pub fn finish(self) -> Vec<u8> ⓘ
pub fn len(&self) -> usize
pub fn is_empty(&self) -> bool
Sourcepub fn varint_i32(&mut self, v: i32)
pub fn varint_i32(&mut self, v: i32)
Proto3 int32: plain varint, with negative values sign-extended to a
10-byte uint64.
Sourcepub fn varint_i64(&mut self, v: i64)
pub fn varint_i64(&mut self, v: i64)
Proto3 int64: plain varint, two’s-complement uint64 form.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Writer
impl RefUnwindSafe for Writer
impl Send for Writer
impl Sync for Writer
impl Unpin for Writer
impl UnsafeUnpin for Writer
impl UnwindSafe for Writer
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