fidl_fuchsia_net_interfaces_ext

Trait TryFromMaybeNonZero

Source
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.

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety", so 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§