Lines Matching defs:T
159 unsafe fn container_of(ptr: *const T) -> NonNull<ArcInner<T>> { in container_of()
211 fn try_pin_init<E>(init: impl PinInit<T, E>, flags: Flags) -> Result<Self::PinnedSelf, E> in try_pin_init()
219 fn try_init<E>(init: impl Init<T, E>, flags: Flags) -> Result<Self, E> in try_init()
229 pub fn new(contents: T, flags: Flags) -> Result<Self, AllocError> { in new()
264 pub fn into_raw(self) -> *const T { in into_raw()
272 pub fn as_ptr(this: &Self) -> *const T { in as_ptr()
301 pub fn as_arc_borrow(&self) -> ArcBorrow<'_, T> { in as_arc_borrow() argument
347 pub fn into_unique_or_drop(self) -> Option<Pin<UniqueArc<T>>> { in into_unique_or_drop()
399 unsafe fn borrow<'a>(ptr: *mut c_void) -> ArcBorrow<'a, T> { in borrow() argument
409 unsafe fn borrow_mut<'a>(ptr: *mut c_void) -> ArcBorrow<'a, T> { in borrow_mut() argument
427 fn as_ref(&self) -> &T { in as_ref()
452 fn borrow(&self) -> &T { in borrow()
726 fn try_pin_init<E>(init: impl PinInit<T, E>, flags: Flags) -> Result<Self::PinnedSelf, E> in try_pin_init()
734 fn try_init<E>(init: impl Init<T, E>, flags: Flags) -> Result<Self, E> in try_init()
745 fn write_init<E>(mut self, init: impl Init<T, E>) -> Result<Self::Initialized, E> { in write_init()
754 fn write_pin_init<E>(mut self, init: impl PinInit<T, E>) -> Result<Pin<Self::Initialized>, E> { in write_pin_init()
766 pub fn new(value: T, flags: Flags) -> Result<Self, AllocError> { in new()
774 pub fn new_uninit(flags: Flags) -> Result<UniqueArc<MaybeUninit<T>>, AllocError> { in new_uninit()
794 pub fn write(mut self, value: T) -> UniqueArc<T> { in write()
806 pub unsafe fn assume_init(self) -> UniqueArc<T> { in assume_init()
816 pub fn init_with<E>(mut self, init: impl Init<T, E>) -> core::result::Result<UniqueArc<T>, E> { in init_with() argument
828 init: impl PinInit<T, E>, in pin_init_with()
829 ) -> core::result::Result<Pin<UniqueArc<T>>, E> { in pin_init_with()
885 fn borrow(&self) -> &T { in borrow()
910 fn borrow_mut(&mut self) -> &mut T { in borrow_mut()