lib.rs
Megabyte-scale size constant in source
SHA-2561feb101f0bbf56aab4b238a661880932cfd2634169e802b069e3f026dc8887db
MaleculeH(Mg)
Evidence
279:68…
280 feature(unsafe_pinned)
281)]
282
283use core::{
284 cell::UnsafeCell,
285 convert::Infallible,
286 marker::PhantomData,
287 mem::MaybeUninit,
288 num::*,
289 pin::Pin,
290 ptr::{self, NonNull},
291};
292
293// This is used by doc-tests -- the proc-macros expand to `::pin_init::...` and without this the
294// …
303:9… y(feature = "std", feature = "alloc"))]
304pub use alloc::InPlaceInit;
305
306/// Used to specify the pinning information of the fields of a struct.
307///
308/// This is somewh …
333:9… #[pin]
334/// queue: CMutex<Vec<Command>>,
335/// buf: Box<[u8; 1024 * 1024]>,
336/// }
337/// ```
⋯5 lines
361:47… lf.raw_info) };
362/// }
363/// }
364/// ```
365pub use ::pin_init_internal::pin_data;
366
367/// Used to implement `PinnedDrop` safely.
368///
369/// Only works on structs that are annotated v …
395:47… lf.raw_info) };
396/// }
397/// }
398/// ```
399pub use ::pin_init_internal::pinned_drop;
400
401/// Derives the [`Zeroable`] trait for the given `struct` or `union`.
402///
403/// This can only b …