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.
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
source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§default unsafe fn clone_to_uninit(&self, dst: *mut T)
default unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)