Trait zebra_chain::block::height::TryIntoHeight
source · 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.