pub struct Encoder<O: OutputTarget> { /* private fields */ }Expand description
TODO
Implementations§
Source§impl<O: OutputTarget> Encoder<O>
impl<O: OutputTarget> Encoder<O>
Sourcepub fn encode_varint(&mut self, value: impl Into<i64>) -> Result<()>
pub fn encode_varint(&mut self, value: impl Into<i64>) -> Result<()>
Encodes a signed integer on between 1 and 8 bytes in the variable length ‘varint’ format.
Sourcepub fn encode_varuint(&mut self, value: impl Into<u64>) -> Result<()>
pub fn encode_varuint(&mut self, value: impl Into<u64>) -> Result<()>
Encodes an unsigned integer on between 1 and 8 bytes in the variable length ‘varuint’ format.
pub fn encode_size(&mut self, value: usize) -> Result<()>
Trait Implementations§
Source§impl<O: OutputTarget> Deref for Encoder<O>
impl<O: OutputTarget> Deref for Encoder<O>
Source§impl<O: OutputTarget> DerefMut for Encoder<O>
impl<O: OutputTarget> DerefMut for Encoder<O>
Source§impl<'a, T> From<T> for Encoder<SliceOutputTarget<'a>>where
T: Into<SliceOutputTarget<'a>>,
impl<'a, T> From<T> for Encoder<SliceOutputTarget<'a>>where
T: Into<SliceOutputTarget<'a>>,
Source§impl<'a, T> From<T> for Encoder<VecOutputTarget<'a>>where
T: Into<VecOutputTarget<'a>>,
impl<'a, T> From<T> for Encoder<VecOutputTarget<'a>>where
T: Into<VecOutputTarget<'a>>,
Auto Trait Implementations§
impl<O> Freeze for Encoder<O>where
O: Freeze,
impl<O> RefUnwindSafe for Encoder<O>where
O: RefUnwindSafe,
impl<O> Send for Encoder<O>where
O: Send,
impl<O> Sync for Encoder<O>where
O: Sync,
impl<O> Unpin for Encoder<O>where
O: Unpin,
impl<O> UnsafeUnpin for Encoder<O>where
O: UnsafeUnpin,
impl<O> UnwindSafe for Encoder<O>where
O: UnwindSafe,
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