Skip to main content

SecureEncoding

Trait SecureEncoding 

Source
pub trait SecureEncoding { }
Expand description

Marker trait for types that support secure encoding operations.

This trait is automatically implemented for any type that can be viewed as a byte slice (i.e., implements AsRef<[u8]>), such as &[u8], Vec<u8>, and byte arrays. It serves as a bound for blanket implementations of encoding traits like ToHex, ToBase64Url, and ToBech32, ensuring only appropriate types can perform encoding.

Since this is a marker trait with no methods, it does not add functionality but enables extension traits to be available where relevant.

Implementors§

Source§

impl<T: AsRef<[u8]> + ?Sized> SecureEncoding for T

Available on crate features encoding-hex or encoding-base64 or encoding-bech32 only.