Skip to main content

ToHex

Trait ToHex 

Source
pub trait ToHex: ToHexPriv {
    // Required method
    fn encode<const UPPER: bool>(&self) -> String;
}
Available on crate feature alloc only.
Expand description

encode(), but for those who prefer bytes.encode() over encode(bytes, buffer).

Required Methods§

Source

fn encode<const UPPER: bool>(&self) -> String

See encode().

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.

Implementors§

Source§

impl<T> ToHex for T
where T: AsRef<[u8]> + ?Sized,