pub struct AlphabetConfig {
pub chars: String,
pub mode: EncodingMode,
pub padding: Option<String>,
pub start_codepoint: Option<u32>,
}Expand description
Configuration for a single alphabet loaded from TOML.
Fields§
§chars: StringThe characters comprising the alphabet
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 AlphabetConfig
impl Clone for AlphabetConfig
Source§fn clone(&self) -> AlphabetConfig
fn clone(&self) -> AlphabetConfig
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 AlphabetConfig
impl Debug for AlphabetConfig
Source§impl<'de> Deserialize<'de> for AlphabetConfig
impl<'de> Deserialize<'de> for AlphabetConfig
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 AlphabetConfig
impl RefUnwindSafe for AlphabetConfig
impl Send for AlphabetConfig
impl Sync for AlphabetConfig
impl Unpin for AlphabetConfig
impl UnwindSafe for AlphabetConfig
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