pub struct UnHex;Expand description
UnHex struct
This struct implements the Convert trait and can be used to convert a hex string to a string.
§Example
use hextool::{UnHex, Convert};
// Convert a hex string to a string
let unhex = UnHex::convert("68656c6c6f", false, false);
println!("68656c6c6f in string: {}", unhex); // #=> "68656c6c6f in string: hello"Trait Implementations§
Auto Trait Implementations§
impl Freeze for UnHex
impl RefUnwindSafe for UnHex
impl Send for UnHex
impl Sync for UnHex
impl Unpin for UnHex
impl UnwindSafe for UnHex
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