pub struct Settings {
pub word_len: Option<u8>,
pub checksum: Checksum,
pub decorate: bool,
}Expand description
Settings used when encoding.
Fields§
§word_len: Option<u8>Maximum number of syllables allowed in a word. Note that the actual number of syllables in a word may
be smaller. Default: 3.
checksum: ChecksumThe checksum settings used. Default: Checksum::Length1.
decorate: boolIf enabled, encoded strings are decorated with commas, periods, and sentence casing. This can make
the encoded string more readable, but also longer. All decorations are ignored when decoding.
Default: false.
Trait Implementations§
impl Copy for Settings
impl Eq for Settings
impl StructuralPartialEq for Settings
Auto Trait Implementations§
impl Freeze for Settings
impl RefUnwindSafe for Settings
impl Send for Settings
impl Sync for Settings
impl Unpin for Settings
impl UnwindSafe for Settings
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