Struct data_encoding::Translate
source · pub struct Translate {
pub from: String,
pub to: String,
}
Expand description
How to translate characters when decoding
The order matters. The first character of the from
field is translated to the first character
of the to
field. The second to the second. Etc.
See Specification for more information.
Features
Requires the alloc
feature.
Fields§
§from: String
Characters to translate from
to: String
Characters to translate to
Trait Implementations§
Auto Trait Implementations§
impl RefUnwindSafe for Translate
impl Send for Translate
impl Sync for Translate
impl Unpin for Translate
impl UnwindSafe for Translate
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