ShouldBeNonZeroExt

Trait ShouldBeNonZeroExt 

pub trait ShouldBeNonZeroExt {
    // Required method
    fn get(&self) -> u64;
}
Available on crate feature unstable-wgpu-27 only.
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§

fn get(&self) -> u64

Implementations on Foreign Types§

§

impl ShouldBeNonZeroExt for Option<NonZero<u64>>

§

fn get(&self) -> u64

§

impl ShouldBeNonZeroExt for u64

§

fn get(&self) -> u64

§

impl ShouldBeNonZeroExt for NonZero<u64>

§

fn get(&self) -> u64

Implementors§