Searched refs:NonZeroU32 (Results 1 – 15 of 15) sorted by relevance
/external/rust/crates/getrandom/src/ |
D | error.rs | 8 use core::{fmt, num::NonZeroU32}; 25 pub struct Error(NonZeroU32); 30 Error(unsafe { NonZeroU32::new_unchecked(code) }) in internal_error() 87 pub const fn code(self) -> NonZeroU32 { in code() argument 151 impl From<NonZeroU32> for Error { 152 fn from(code: NonZeroU32) -> Self { in from()
|
D | wasi.rs | 11 use core::num::NonZeroU32; 17 NonZeroU32::new(e.raw_error() as u32).unwrap().into() in getrandom_inner()
|
D | windows.rs | 10 use core::{ffi::c_void, num::NonZeroU32, ptr}; 42 let code = unsafe { NonZeroU32::new_unchecked(code) }; in getrandom_inner()
|
D | custom.rs | 11 use core::num::NonZeroU32; 98 match NonZeroU32::new(ret) { in getrandom_inner()
|
D | util_libc.rs | 10 use core::{num::NonZeroU32, ptr::NonNull}; 41 Error::from(NonZeroU32::new(errno as u32).unwrap()) in last_os_error()
|
/external/rust/crates/rand_core/src/ |
D | error.rs | 12 use core::num::NonZeroU32; 25 code: NonZeroU32, 106 pub fn code(&self) -> Option<NonZeroU32> { in code() argument 152 impl From<NonZeroU32> for Error { 154 fn from(code: NonZeroU32) -> Self { in from() 207 struct ErrorCode(NonZeroU32);
|
/external/rust/crates/ring/src/ |
D | pbkdf2.rs | 116 use core::num::NonZeroU32; 157 iterations: NonZeroU32, in derive() argument 183 fn derive_block(secret: &hmac::Key, iterations: NonZeroU32, salt: &[u8], idx: u32, out: &mut [u8]) { in derive_block() argument 227 iterations: NonZeroU32, in verify() argument
|
/external/rust/crates/getrandom/tests/ |
D | custom.rs | 14 num::NonZeroU32, 20 NonZeroU32::new(Error::INTERNAL_START + 7).unwrap().into() in len7_err()
|
/external/rust/crates/ring/tests/ |
D | pbkdf2_tests.rs | 33 use core::num::NonZeroU32; 63 let iterations = NonZeroU32::new(iterations as u32).unwrap(); in pbkdf2_tests()
|
/external/rust/crates/rand/src/distributions/ |
D | integer.rs | 18 use core::num::{NonZeroU16, NonZeroU32, NonZeroU64, NonZeroU8, NonZeroUsize}; 109 impl_nzint!(NonZeroU32, NonZeroU32::new);
|
/external/crosvm/gpu_display/src/ |
D | gpu_display_stub.rs | 6 use std::num::NonZeroU32; 13 type SurfaceId = NonZeroU32;
|
D | gpu_display_x.rs | 19 use std::num::NonZeroU32; 37 type ObjectId = NonZeroU32;
|
/external/crosvm/devices/src/virtio/gpu/ |
D | virtio_gpu.rs | 7 use std::num::NonZeroU32; 76 scanout_resource_id: Option<NonZeroU32>, 78 cursor_resource_id: Option<NonZeroU32>, 231 self.scanout_resource_id = NonZeroU32::new(resource_id); in set_scanout() 374 self.cursor_resource_id = NonZeroU32::new(resource_id); in update_cursor()
|
/external/rust/crates/serde/src/ser/ |
D | impls.rs | 486 NonZeroU32,
|
/external/rust/crates/serde/src/de/ |
D | impls.rs | 2453 NonZeroU32,
|