pub enum EncodingMode {
Radix,
Chunked,
ByteRange,
}Expand description
Encoding strategy for converting binary data to text.
Different modes offer different tradeoffs between efficiency, compatibility, and features.
Variants§
Radix
True radix/base conversion treating data as a large number. Works with any dictionary size. Output length varies with input. Requires entire input before producing output (not streamable).
Chunked
Fixed-size bit chunking per RFC 4648. Requires power-of-two dictionary size. Supports padding.
ByteRange
Direct 1:1 byte-to-character mapping using Unicode codepoint ranges. Zero encoding overhead. Always 256 characters.
Trait Implementations§
Source§impl Clone for EncodingMode
impl Clone for EncodingMode
Source§fn clone(&self) -> EncodingMode
fn clone(&self) -> EncodingMode
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for EncodingMode
impl Debug for EncodingMode
Source§impl Default for EncodingMode
impl Default for EncodingMode
Source§fn default() -> EncodingMode
fn default() -> EncodingMode
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for EncodingMode
impl<'de> Deserialize<'de> for EncodingMode
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl PartialEq for EncodingMode
impl PartialEq for EncodingMode
impl Eq for EncodingMode
impl StructuralPartialEq for EncodingMode
Auto Trait Implementations§
impl Freeze for EncodingMode
impl RefUnwindSafe for EncodingMode
impl Send for EncodingMode
impl Sync for EncodingMode
impl Unpin for EncodingMode
impl UnwindSafe for EncodingMode
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