Home
last modified time | relevance | path

Searched refs:NonZeroU32 (Results 1 – 15 of 15) sorted by relevance

/external/rust/crates/getrandom/src/
Derror.rs8 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()
Dwasi.rs11 use core::num::NonZeroU32;
17 NonZeroU32::new(e.raw_error() as u32).unwrap().into() in getrandom_inner()
Dwindows.rs10 use core::{ffi::c_void, num::NonZeroU32, ptr};
42 let code = unsafe { NonZeroU32::new_unchecked(code) }; in getrandom_inner()
Dcustom.rs11 use core::num::NonZeroU32;
98 match NonZeroU32::new(ret) { in getrandom_inner()
Dutil_libc.rs10 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/
Derror.rs12 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/
Dpbkdf2.rs116 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/
Dcustom.rs14 num::NonZeroU32,
20 NonZeroU32::new(Error::INTERNAL_START + 7).unwrap().into() in len7_err()
/external/rust/crates/ring/tests/
Dpbkdf2_tests.rs33 use core::num::NonZeroU32;
63 let iterations = NonZeroU32::new(iterations as u32).unwrap(); in pbkdf2_tests()
/external/rust/crates/rand/src/distributions/
Dinteger.rs18 use core::num::{NonZeroU16, NonZeroU32, NonZeroU64, NonZeroU8, NonZeroUsize};
109 impl_nzint!(NonZeroU32, NonZeroU32::new);
/external/crosvm/gpu_display/src/
Dgpu_display_stub.rs6 use std::num::NonZeroU32;
13 type SurfaceId = NonZeroU32;
Dgpu_display_x.rs19 use std::num::NonZeroU32;
37 type ObjectId = NonZeroU32;
/external/crosvm/devices/src/virtio/gpu/
Dvirtio_gpu.rs7 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/
Dimpls.rs486 NonZeroU32,
/external/rust/crates/serde/src/de/
Dimpls.rs2453 NonZeroU32,