pub trait TryIntoHeight {
type Error;
// Required method
fn try_into_height(&self) -> Result<Height, Self::Error>;
}Expand description
Convenience trait for converting a type into a valid Zcash Height.
Required Associated Types§
Required Methods§
Sourcefn try_into_height(&self) -> Result<Height, Self::Error>
fn try_into_height(&self) -> Result<Height, Self::Error>
Convert self to a Height, if possible.
Dyn Compatibility§
This trait is dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".