Skip to main content

SecureDecoding

Trait SecureDecoding 

Source
pub trait SecureDecoding { }
Expand description

Marker trait for types that support secure decoding operations.

This trait is automatically implemented for any type that can be viewed as a string slice (i.e., implements AsRef<str>), such as &str, String, and string slices. It serves as a bound for blanket implementations of decoding traits like FromHexStr, FromBase64UrlStr, and FromBech32Str, ensuring only appropriate types can perform decoding.

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<str> + ?Sized> SecureDecoding for T

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