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§

source

type Error

The error type returned by Height conversion failures.

Required Methods§

source

fn try_into_height(&self) -> Result<Height, Self::Error>

Convert self to a Height, if possible.

Implementations on Foreign Types§

source§

impl TryIntoHeight for Value

source§

impl TryIntoHeight for i32

source§

impl TryIntoHeight for str

source§

impl TryIntoHeight for u64

source§

impl TryIntoHeight for usize

source§

impl TryIntoHeight for String

Implementors§