pub struct Writer { /* private fields */ }Expand description
Appends RFC 4251 data types to a byte vector.
Implementations§
Source§impl Writer
impl Writer
Sourcepub fn into_bytes(self) -> Vec<u8> ⓘ
pub fn into_bytes(self) -> Vec<u8> ⓘ
The bytes written so far.
Sourcepub fn mpint_unsigned(&mut self, magnitude: &[u8]) -> &mut Self
pub fn mpint_unsigned(&mut self, magnitude: &[u8]) -> &mut Self
mpint holding the unsigned big-endian integer magnitude: leading zero bytes are
dropped, and a zero byte is prepended when the top bit is set.
Trait Implementations§
Auto Trait Implementations§
impl Forget for Writer
impl Freeze for Writer
impl Move 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