pub trait AddressCodec<P>: 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".
Implementations on Foreign Types§
Source§impl<P> AddressCodec<P> for PaymentAddresswhere
P: Parameters,
Available on crate feature sapling only.
impl<P> AddressCodec<P> for PaymentAddresswhere
P: Parameters,
Available on crate feature
sapling only.