Struct cryptatools_core::utils::convert::Decode
source · pub struct Decode {}
Implementations§
source§impl Decode
impl Decode
sourcepub fn from_u8_to_ascii(u8_input: Vec<u8>) -> String
pub fn from_u8_to_ascii(u8_input: Vec<u8>) -> String
Decode a vector of u8 to ascii text string.
use cryptatools_core::utils::convert;
let ascii: String = convert::Decode::from_u8_to_ascii(vec![0x41, 0x41, 0x41]);
assert_eq!("AAA", ascii);
use cryptatools_core::utils::convert;
let ascii: String = convert::Decode::from_u8_to_ascii(vec![0x48, 0x69, 0x21]);
assert_eq!("Hi!", ascii);
Auto Trait Implementations§
impl RefUnwindSafe for Decode
impl Send for Decode
impl Sync for Decode
impl Unpin for Decode
impl UnwindSafe for Decode
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