pub trait TryFromMaybeNonZero: Sized {
    // Required method
    fn try_from(value: u64) -> Result<Self, ZeroError>;
}
Expand description

A type that may fallibly convert from a u64 because the value is 0.

Required Methods§

source

fn try_from(value: u64) -> Result<Self, ZeroError>

Try to convert the u64 into Self.

Object Safety§

This trait is not object safe.

Implementations on Foreign Types§

source§

impl TryFromMaybeNonZero for u64

source§

fn try_from(value: u64) -> Result<Self, ZeroError>

source§

impl TryFromMaybeNonZero for NonZeroU64

source§

fn try_from(value: u64) -> Result<Self, ZeroError>

Implementors§