Home
last modified time | relevance | path

Searched refs:NonZeroU8 (Results 1 – 6 of 6) sorted by relevance

/external/rust/crates/mio/src/
Dinterest.rs1 use std::num::NonZeroU8;
17 pub struct Interest(NonZeroU8);
38 pub const READABLE: Interest = Interest(unsafe { NonZeroU8::new_unchecked(READABLE) });
41 pub const WRITABLE: Interest = Interest(unsafe { NonZeroU8::new_unchecked(WRITABLE) });
50 pub const AIO: Interest = Interest(unsafe { NonZeroU8::new_unchecked(AIO) });
54 pub const LIO: Interest = Interest(unsafe { NonZeroU8::new_unchecked(LIO) });
70 Interest(unsafe { NonZeroU8::new_unchecked(self.0.get() | other.0.get()) }) in add()
94 NonZeroU8::new(self.0.get() & !other.0.get()).map(Interest) in remove()
/external/rust/crates/rand/src/distributions/
Dinteger.rs18 use core::num::{NonZeroU16, NonZeroU32, NonZeroU64, NonZeroU8, NonZeroUsize};
107 impl_nzint!(NonZeroU8, NonZeroU8::new);
/external/crosvm/devices/src/virtio/gpu/
Dmod.rs16 use std::num::NonZeroU8;
878 num_scanouts: NonZeroU8,
896 num_scanouts: NonZeroU8, in new() argument
/external/rust/crates/serde/src/ser/
Dimpls.rs484 NonZeroU8,
/external/crosvm/src/
Dlinux.rs18 use std::num::NonZeroU8;
884 NonZeroU8::new(1).unwrap(), // number of scanouts in create_gpu_device()
/external/rust/crates/serde/src/de/
Dimpls.rs2451 NonZeroU8,