pub struct SizeBuilder { /* private fields */ }
Implementations§
Source§impl SizeBuilder
impl SizeBuilder
pub fn new() -> Self
pub fn write_tag(&mut self, fieldnum: u64, _wtype: WireType)
pub fn write_len(&mut self, len: u64)
pub fn write_varint(&mut self, val: u64)
pub fn write_i32(&mut self, _val: u32)
pub fn write_i64(&mut self, _val: u64)
pub fn write_bytes(&mut self, len: u64)
pub fn write_empty_field(&mut self, fieldnum: u64)
pub fn finish(self) -> u64
Trait Implementations§
Auto Trait Implementations§
impl Freeze for SizeBuilder
impl RefUnwindSafe for SizeBuilder
impl Send for SizeBuilder
impl Sync for SizeBuilder
impl Unpin for SizeBuilder
impl UnwindSafe for SizeBuilder
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