Struct protokit_binformat::stream::OutputStream
source · pub struct OutputStream { /* private fields */ }
Implementations§
source§impl OutputStream
impl OutputStream
pub fn new(vec: Vec<u8>) -> Self
pub fn len(&self) -> usize
pub fn is_empty(&self) -> bool
pub fn finish(self) -> Vec<u8>
pub fn varint<V: Varint + Debug>(&mut self, _: u32, v: &V)
pub fn sigint<V: Sigint + Debug>(&mut self, _: u32, v: &V)
pub fn bool(&mut self, _: u32, b: &bool)
pub fn protoenum<V: Clone + Copy + Into<u32>>(&mut self, _: u32, v: &V)
pub fn fixed<V: Fixed>(&mut self, _: u32, v: &V)
pub fn fixed32<V: Fixed>(&mut self, _: u32, v: &V)
pub fn fixed64<V: Fixed>(&mut self, _: u32, v: &V)
pub fn bytes<'x, B: BytesLike<'x>>(&mut self, _: u32, b: &B)
pub fn string<'out, B: BytesLike<'out>>(&mut self, _: u32, b: &B)
pub fn nested<'buf, P: BinProto<'buf>>(&mut self, _: u32, v: &P)
pub fn group<'buf, P: BinProto<'buf>>(&mut self, num: u32, v: &P)
Trait Implementations§
source§impl Default for OutputStream
impl Default for OutputStream
source§fn default() -> OutputStream
fn default() -> OutputStream
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for OutputStream
impl RefUnwindSafe for OutputStream
impl !Send for OutputStream
impl !Sync for OutputStream
impl Unpin for OutputStream
impl UnwindSafe for OutputStream
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