Lines Matching full:pub
16 pub(super) type Invariant<T> = PhantomData<fn(*mut T) -> *mut T>;
21 pub(crate) struct InitClosure<F, T: ?Sized, E>(pub(crate) F, pub(crate) Invariant<(E, T)>);
53 pub unsafe trait HasPinData {
64 pub unsafe trait PinData: Copy {
82 pub unsafe trait HasInitData {
93 pub unsafe trait InitData: Copy {
105 pub struct AllData<T: ?Sized>(PhantomData<fn(Box<T>) -> Box<T>>);
134 pub struct StackInit<T> {
156 pub fn uninit() -> Self { in uninit()
165 pub fn init<E>(self: Pin<&mut Self>, init: impl PinInit<T, E>) -> Result<Pin<&mut T>, E> { in init()
187 pub struct DropGuard<T: ?Sized> {
203 pub unsafe fn new(ptr: *mut T) -> Self { in new()
220 pub struct OnlyCallFromDrop(());
227 pub unsafe fn new() -> Self { in new()
237 pub struct AlwaysFail<T: ?Sized> {
243 pub fn new() -> Self { in new()