pub trait AddressCodec<P>where
Self: Sized,{
type Error;
// Required methods
fn encode(&self, params: &P) -> String;
fn decode(params: &P, address: &str) -> Result<Self, Self::Error>;
}
Expand description
A trait for encoding and decoding Zcash addresses.
Required Associated Types§
Required Methods§
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.
Implementations on Foreign Types§
Source§impl<P: Parameters> AddressCodec<P> for PaymentAddress
Available on crate feature sapling
only.
impl<P: Parameters> AddressCodec<P> for PaymentAddress
Available on crate feature
sapling
only.