Lines Matching full:pub
16 pub(super) type Invariant<T> = PhantomData<fn(*mut T) -> *mut T>;
22 pub(crate) struct InitClosure<F, T: ?Sized, E>(pub(crate) F, pub(crate) Invariant<(E, T)>);
54 pub unsafe trait HasPinData {
66 pub unsafe trait PinData: Copy {
84 pub unsafe trait HasInitData {
96 pub unsafe trait InitData: Copy {
108 pub struct AllData<T: ?Sized>(PhantomData<fn(KBox<T>) -> KBox<T>>);
139 pub struct StackInit<T> {
161 pub fn uninit() -> Self { in uninit()
170 pub fn init<E>(self: Pin<&mut Self>, init: impl PinInit<T, E>) -> Result<Pin<&mut T>, E> { in init()
192 pub struct DropGuard<T: ?Sized> {
208 pub unsafe fn new(ptr: *mut T) -> Self { in new()
225 pub struct OnlyCallFromDrop(());
232 pub unsafe fn new() -> Self { in new()
242 pub struct AlwaysFail<T: ?Sized> {
248 pub fn new() -> Self { in new()