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 Freeze for Decode
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
§impl<T, UT> HandleAlloc<UT> for T
impl<T, UT> HandleAlloc<UT> for T
§fn new_handle(value: Arc<T>) -> Handle
fn new_handle(value: Arc<T>) -> Handle
Create a new handle for an Arc value Read more
§fn clone_handle(handle: Handle) -> Handle
fn clone_handle(handle: Handle) -> Handle
Clone a handle Read more
§fn consume_handle(handle: Handle) -> Arc<T>
fn consume_handle(handle: Handle) -> Arc<T>
Consume a handle, getting back the initial
Arc<>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left
is true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left(&self)
returns true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read more