Skip to main content

ShouldBeNonZeroExt

Trait ShouldBeNonZeroExt 

Source
pub trait ShouldBeNonZeroExt {
    // Required method
    fn get(&self) -> u64;
}
Expand description

Temporary convenience trait to let us call .get() on u64s in code that really wants to be using NonZeroU64. TODO(https://github.com/gfx-rs/wgpu/issues/3170): remove this

Required Methods§

Source

fn get(&self) -> u64

Dyn Compatibility§

This trait is dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementations on Foreign Types§

Source§

impl ShouldBeNonZeroExt for NonZeroU64

Source§

fn get(&self) -> u64

Source§

impl ShouldBeNonZeroExt for Option<NonZeroU64>

Source§

fn get(&self) -> u64

Source§

impl ShouldBeNonZeroExt for u64

Source§

fn get(&self) -> u64

Implementors§