Struct data_encoding::Translate
source · pub struct Translate {
pub from: String,
pub to: String,
}
Available on crate feature
alloc
only.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.
Fields§
§from: String
Characters to translate from
to: String
Characters to translate to
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Translate
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