pub struct DictionaryEncoder;Expand description
Dictionary-based string encoder.
Implementations§
Source§impl DictionaryEncoder
impl DictionaryEncoder
Sourcepub fn encode(values: &[&str]) -> Result<Vec<u8>>
pub fn encode(values: &[&str]) -> Result<Vec<u8>>
Encode a sequence of string values.
§Errors
Returns EncodingError::EmptyInput if values is empty, or
EncodingError::DictionaryOverflow if there are more than 2^32−1
unique values.
Trait Implementations§
Source§impl Clone for DictionaryEncoder
impl Clone for DictionaryEncoder
Source§fn clone(&self) -> DictionaryEncoder
fn clone(&self) -> DictionaryEncoder
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Copy for DictionaryEncoder
Auto Trait Implementations§
impl Freeze for DictionaryEncoder
impl RefUnwindSafe for DictionaryEncoder
impl Send for DictionaryEncoder
impl Sync for DictionaryEncoder
impl Unpin for DictionaryEncoder
impl UnsafeUnpin for DictionaryEncoder
impl UnwindSafe for DictionaryEncoder
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