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

§

type Error = Box<dyn Error + Send + Sync>

source§

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

source§

impl TryIntoHeight for i32

§

type Error = Box<dyn Error + Send + Sync>

source§

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

source§

impl TryIntoHeight for str

§

type Error = Box<dyn Error + Send + Sync>

source§

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

source§

impl TryIntoHeight for u64

§

type Error = Box<dyn Error + Send + Sync>

source§

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

source§

impl TryIntoHeight for usize

§

type Error = Box<dyn Error + Send + Sync>

source§

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

source§

impl TryIntoHeight for String

§

type Error = Box<dyn Error + Send + Sync>

source§

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

Implementors§