EncodeUsedBytesTo

Trait EncodeUsedBytesTo 

Source
pub trait EncodeUsedBytesTo {
    // Required method
    fn encode_used_bytes_to<T: MutBits + ?Sized>(
        &self,
        out: &mut T,
    ) -> Result<usize, BitsError>;
}
Expand description

Writes only the used number of bytes in the integer to the output stream.

Required Methods§

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.

Implementations on Foreign Types§

Source§

impl EncodeUsedBytesTo for u32

Implementors§