pub struct DictionaryConfig {
pub chars: String,
pub mode: EncodingMode,
pub padding: Option<String>,
pub start_codepoint: Option<u32>,
}Expand description
Configuration for a single dictionary loaded from TOML.
Fields§
§chars: StringThe characters comprising the dictionary
mode: EncodingModeThe encoding mode to use
padding: Option<String>Optional padding character (e.g., “=” for base64)
start_codepoint: Option<u32>Starting Unicode codepoint for ByteRange mode
Trait Implementations§
Source§impl Clone for DictionaryConfig
impl Clone for DictionaryConfig
Source§fn clone(&self) -> DictionaryConfig
fn clone(&self) -> DictionaryConfig
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 DictionaryConfig
impl Debug for DictionaryConfig
Source§impl<'de> Deserialize<'de> for DictionaryConfig
impl<'de> Deserialize<'de> for DictionaryConfig
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
Auto Trait Implementations§
impl Freeze for DictionaryConfig
impl RefUnwindSafe for DictionaryConfig
impl Send for DictionaryConfig
impl Sync for DictionaryConfig
impl Unpin for DictionaryConfig
impl UnwindSafe for DictionaryConfig
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