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

Implementations on Foreign Types§

Source§

impl ShouldBeNonZeroExt for Option<NonZeroU64>

Source§

fn get(&self) -> u64

Source§

impl ShouldBeNonZeroExt for u64

Source§

fn get(&self) -> u64

Source§

impl ShouldBeNonZeroExt for NonZeroU64

Source§

fn get(&self) -> u64

Implementors§