Searched refs:NonZeroU8 (Results 1 – 6 of 6) sorted by relevance
/external/rust/crates/mio/src/ |
D | interest.rs | 1 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/ |
D | integer.rs | 18 use core::num::{NonZeroU16, NonZeroU32, NonZeroU64, NonZeroU8, NonZeroUsize}; 107 impl_nzint!(NonZeroU8, NonZeroU8::new);
|
/external/crosvm/devices/src/virtio/gpu/ |
D | mod.rs | 16 use std::num::NonZeroU8; 878 num_scanouts: NonZeroU8, 896 num_scanouts: NonZeroU8, in new() argument
|
/external/rust/crates/serde/src/ser/ |
D | impls.rs | 484 NonZeroU8,
|
/external/crosvm/src/ |
D | linux.rs | 18 use std::num::NonZeroU8; 884 NonZeroU8::new(1).unwrap(), // number of scanouts in create_gpu_device()
|
/external/rust/crates/serde/src/de/ |
D | impls.rs | 2451 NonZeroU8,
|