pub struct EncodingStream { /* private fields */ }Expand description
Encoding stream for efficient multi-value encoding
Implementations§
Source§impl EncodingStream
impl EncodingStream
Sourcepub fn encode_tagged<T: EncodableValue>(
&mut self,
tag: ApplicationTag,
value: T,
) -> Result<()>
pub fn encode_tagged<T: EncodableValue>( &mut self, tag: ApplicationTag, value: T, ) -> Result<()>
Encode an application tagged value
Sourcepub fn encode_context<T: EncodableValue>(
&mut self,
tag_number: u8,
value: T,
) -> Result<()>
pub fn encode_context<T: EncodableValue>( &mut self, tag_number: u8, value: T, ) -> Result<()>
Encode a context tagged value
Sourcepub fn into_buffer(self) -> Vec<u8> ⓘ
pub fn into_buffer(self) -> Vec<u8> ⓘ
Take the buffer
Auto Trait Implementations§
impl Freeze for EncodingStream
impl RefUnwindSafe for EncodingStream
impl Send for EncodingStream
impl Sync for EncodingStream
impl Unpin for EncodingStream
impl UnsafeUnpin for EncodingStream
impl UnwindSafe for EncodingStream
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