Expand description
Method which adds extra word when encoding bit (uses pivot, which informs about expected max line length)
§Description
This encoder extends line with extra word (to be greater than pivot) to encode bit. If the line length is greater than the pivot the bit 1 is encoded, otherwise 0.
For more info about pivot see LineByPivotIterator.
§Behavior
This encoder can return EncodingError when no extra words are found and the bit 1 occurs.
Structs§
- Line
Extend Method - Unit structure representing the line extension method.
Constants§
- ASCII_
DELIMITER - Character used as the word delimiter.
- POSSIBLE_
LINE_ ENDINGS_ SET - Set of possible line endings, the set is different from one used crate::method::trailing_unicode as it includes all possible characters, not the curated set used in encoding.